#!/bin/sh ### BEGIN INIT INFO # Provides: usbmount # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Position: S20usbmount # Short-Description: cleanup all old usb mount points ### END INIT INFO # --------------------------------------------------------------------------- ### ------------------------------------------------------------------------- ### start/stop and failure message color output ### ------------------------------------------------------------------------- . /lib/lsb/init-functions ### ------------------------------------------------------------------------- ### main ### ------------------------------------------------------------------------- case "$1" in start) if [ -e /sbin/usbmount.sh ] then log_begin_msg "Cleanup old usb mountpoints..." /sbin/usbmount.sh cleanup log_end_msg $? fi ;; stop) ;; restart|reload|force-reload) $0 stop $0 start ;; *) log_action_msg "Usage: /etc/init.d/usbmount {start|stop|restart}" exit 2 ;; esac exit 0