Changeset 301 in vbox for trunk/src/VBox/Additions/linux/installer/vboxvfs.sh
- Timestamp:
- Jan 25, 2007 2:42:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxvfs.sh
r1 r301 1 #! /bin/ bash1 #! /bin/sh 2 2 # InnoTek VirtualBox 3 3 # Linux Additions VFS kernel module init script … … 29 29 # Description: VirtualBox Linux Additions VFS kernel module 30 30 ### END INIT INFO 31 32 PATH=$PATH:/bin:/sbin:/usr/sbin 31 33 32 34 system=unknown … … 39 41 elif [ -f /etc/gentoo-release ]; then 40 42 system=gentoo 43 elif [ -f /etc/slackware-version ]; then 44 system=slackware 41 45 else 42 46 echo "$0: Unknown system" 1>&2 43 47 fi 44 48 45 if [ $system= redhat ]; then49 if [ "$system" = redhat ]; then 46 50 . /etc/init.d/functions 47 51 fail_msg() { … … 60 64 fi 61 65 62 if [ $system= suse ]; then66 if [ "$system" = suse ]; then 63 67 . /etc/rc.status 64 68 fail_msg() { … … 77 81 fi 78 82 79 if [ $system= debian ]; then83 if [ "$system" = debian ]; then 80 84 fail_msg() { 81 85 echo "...fail!" … … 91 95 fi 92 96 93 if [ $system= gentoo ]; then97 if [ "$system" = gentoo ]; then 94 98 . /sbin/functions.sh 95 99 fail_msg() { … … 110 114 fi 111 115 116 if [ "$system" = slackware ]; then 117 fail_msg() { 118 echo "...fail!" 119 } 120 121 succ_msg() { 122 echo "...done." 123 } 124 125 begin() { 126 echo -n $1 127 } 128 fi 129 112 130 kdir=/lib/modules/`uname -r`/misc 113 131 modname=vboxvfs 114 module= $kdir/$modname132 module="$kdir/$modname" 115 133 116 134 file="" … … 119 137 120 138 fail() { 121 if [ $system= gentoo ]; then139 if [ "$system" = gentoo ]; then 122 140 eerror $1 123 141 exit 1
Note:
See TracChangeset
for help on using the changeset viewer.