#!/bin/bash ### BEGIN INIT INFO # Provides: vbox-mountsf # Required-Start: $remote-fs $syslog # Required-Stop: $remote-fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Mount the Shared Folders # Description: Mount the Shared Folders ### END INIT INFO USAGE="$0 [start|restart|force-reload|status|stop|init|1sttime]" [ -z $1 ] && $(echo $USAGE | exit 1) case $1 in start) : set -x mount -t vboxsf -o uid=1000,gid=1000 Common /import/common mount -t vboxsf -o uid=1000,gid=1000 local /import/local exit 0 ;; stop) umount /import/common umount /import/local exit 0 ;; restart|force-reload|status) exit 0 ;; init|1sttime) : mkdir /import mkdir /import/common mkdir /import/local exit 0 ;; *) echo $USAGE ; exit 1 ;; esac