Changeset 7906 in vbox for trunk/src/VBox/Installer/solaris
- Timestamp:
- Apr 11, 2008 11:24:36 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29534
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxdrv.sh
r7692 r7906 1 #!/bin/ bash1 #!/bin/sh 2 2 # innotek VirtualBox 3 3 # VirtualBox kernel module control script for Solaris. … … 66 66 check_root() 67 67 { 68 if test ` id -u` -ne 0; then68 if test `/usr/xpg4/bin/id -u` -ne 0; then 69 69 abort "This program must be run with administrator privileges. Aborting" 70 70 fi 71 71 } 72 72 73 start ()73 start_module() 74 74 { 75 75 if module_loaded; then … … 77 77 else 78 78 /usr/sbin/add_drv -m'* 0666 root sys' vboxdrv 79 if ! module_loaded; then79 if test ! module_loaded; then 80 80 abort "Failed to load vboxdrv." 81 81 elif test -c "/devices/pseudo/vboxdrv@0:vboxdrv"; then … … 88 88 } 89 89 90 stop ()90 stop_module() 91 91 { 92 92 if module_loaded; then … … 98 98 } 99 99 100 restart ()100 restart_module() 101 101 { 102 stop 102 stop_module 103 103 sync 104 start 104 start_module 105 105 return 0 106 106 } 107 107 108 status ()108 status_module() 109 109 { 110 110 if module_loaded; then … … 125 125 case "$1" in 126 126 start) 127 start 127 start_module 128 128 ;; 129 129 stop) 130 stop 130 stop_module 131 131 ;; 132 132 restart) 133 restart 133 restart_module 134 134 ;; 135 135 status) 136 status 136 status_module 137 137 ;; 138 138 *)
Note:
See TracChangeset
for help on using the changeset viewer.