Changeset 11975 in vbox for trunk/src/VBox/Installer/solaris
- Timestamp:
- Sep 2, 2008 12:16:12 PM (16 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/postinstall.sh
r11923 r11975 31 31 if test "$currentzone" = "global"; then 32 32 echo "Configuring VirtualBox kernel module..." 33 /opt/VirtualBox/vboxdrv.sh restart silentunload 34 33 /opt/VirtualBox/vboxdrv.sh stopall silentunload 34 /opt/VirtualBox/vboxdrv.sh start 35 35 36 echo "Configuring VirtualBox NetFilter kernel module..." 36 37 if test -f /platform/i86pc/kernel/drv/vboxflt.conf; then 37 /opt/VirtualBox/vboxdrv.sh flt restart silentunload38 /opt/VirtualBox/vboxdrv.sh fltstart 38 39 fi 39 40 fi -
trunk/src/VBox/Installer/solaris/preremove.sh
r11369 r11975 22 22 23 23 # vboxdrv.sh would've been installed, we just need to call it. 24 /opt/VirtualBox/vboxdrv.sh stop 24 /opt/VirtualBox/vboxdrv.sh stopall 25 25 26 26 # remove /dev/vboxdrv -
trunk/src/VBox/Installer/solaris/vboxdrv.sh
r11948 r11975 117 117 } 118 118 119 restart_module()120 {121 stop_module122 sync123 start_module124 return 0125 }126 127 119 start_vboxflt() 128 120 { … … 154 146 } 155 147 156 restart_vboxflt()157 {158 stop_vboxflt159 sync160 start_vboxflt161 return 0162 }163 164 148 status_module() 165 149 { … … 169 153 info "Stopped." 170 154 fi 155 } 156 157 stop_all_modules() 158 { 159 stop_vboxflt 160 stop_module 161 } 162 163 start_all_modules() 164 { 165 start_module 166 start_vboxflt 171 167 } 172 168 … … 179 175 180 176 case "$1" in 177 stopall) 178 stop_all_modules 179 ;; 180 startall) 181 start_all_modules 182 ;; 181 183 start) 182 184 start_module … … 185 187 stop_module 186 188 ;; 187 restart)188 restart_module189 ;;190 189 status) 191 190 status_module 192 191 ;; 193 fltrestart) 194 restart_vboxflt 192 fltstart) 193 start_vboxflt 194 ;; 195 fltstop) 196 stop_vboxflt 195 197 ;; 196 198 *) 197 echo "Usage: $0 {start|stop| restart|status|fltrestart}"199 echo "Usage: $0 {start|stop|status|fltstart|fltstop|stopall|startall}" 198 200 exit 1 199 201 esac
Note:
See TracChangeset
for help on using the changeset viewer.