Skip to content

Commit 163fa24

Browse files
committed
add init mount script for virtual box share directory .
1 parent 5d73864 commit 163fa24

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

virtualbox/vboxshare

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
3+
case "$1" in
4+
start)
5+
echo "Starting mount share directory for vbox"
6+
mount.vboxsf -o uid=1000,gid=1000,dmode=0775,fmode=0664 share /mnt/share
7+
;;
8+
stop)
9+
echo "Stopping mount share directory for vbox"
10+
umount /mnt/share
11+
;;
12+
*)
13+
echo "Usage: /etc/init.d/vboxshare {start|stop}"
14+
exit 1
15+
;;
16+
esac
17+
18+
exit 0
19+

0 commit comments

Comments
 (0)