Changeset 37787 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jul 5, 2011 3:14:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r37784 r37787 643 643 644 644 # remove netmask configuration 645 nmaskfile=$PKG_INSTALL_ROOT/etc/ netmasks645 nmaskfile=$PKG_INSTALL_ROOT/etc/inet/netmasks 646 646 nmaskbackupfile=$nmaskfile.vbox 647 647 if test -f "$nmaskfile"; then … … 817 817 $BIN_IFCONFIG vboxnet0 192.168.56.1 netmask 255.255.255.0 up 818 818 819 # /etc/netmasks is a symlink, older installers replaced this with 820 # a copy of the actual file, repair that behaviour here. 821 recreatelink=0 822 if test -h $PKG_INSTALL_ROOT/etc/netmasks; then 823 nmaskfile=$PKG_INSTALL_ROOT/etc/inet/netmasks 824 else 825 nmaskfile=$PKG_INSTALL_ROOT/etc/netmasks 826 recreatelink=1 827 fi 828 819 829 # add the netmask to stay persistent across host reboots 820 nmaskfile=$PKG_INSTALL_ROOT/etc/netmasks821 830 nmaskbackupfile=$nmaskfile.vbox 822 831 if test -f $nmaskfile; then … … 832 841 echo "#VirtualBox_SectionEnd" >> $nmaskbackupfile 833 842 mv -f $nmaskbackupfile $nmaskfile 843 844 # Recreate /etc/netmasks as a link if necessary 845 if test $recreatelink -eq 1; then 846 cp -f $PKG_INSTALL_ROOT/etc/netmasks $PKG_INSTALL_ROOT/etc/inet/netmasks 847 ln -sf ./inet/netmasks $PKG_INSTALL_ROOT/etc/netmasks 848 fi 834 849 fi 835 850 else
Note:
See TracChangeset
for help on using the changeset viewer.