#! /bin/sh ### BEGIN INIT INFO # Provides: reboot-do # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: 6 # Short-Description: Make a check file for rebooting. # Description: ### END INIT INFO PATH=/sbin:/usr/sbin:/bin:/usr/bin . /lib/lsb/init-functions do_stop () { touch /var/reboot.done date > /var/reboot.done } case "$1" in start) # No-op ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) do_stop ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac