VirtualBox

Changeset 27355 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Mar 15, 2010 12:23:08 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58794
Message:

Solaris/Installer: don't pollute config files with unplumbed vboxnet instances.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/vboxconfig.sh

    r27317 r27355  
    479479    nmaskbackupfile=$nmaskfile.vbox
    480480    if test -f "$nmaskfile"; then
    481         sed -e '/VirtualBox_SectionStart_DoNotEdit/,/VirtualBox_SectionEnd_DoNotEdit/d' $nmaskfile > $nmaskbackupfile
     481        sed -e '/#VirtualBox_SectionStart/,/#VirtualBox_SectionEnd/d' $nmaskfile > $nmaskbackupfile
    482482        mv -f $nmaskbackupfile $nmaskfile
    483483    fi
     
    596596                inst=0
    597597                networkn=56
    598                 while test $inst -ne $MOD_VBOXNET_INST; do
     598                while test $inst -ne 1; do
    599599                    echo "vboxnet$inst  static 192.168.$networkn.1" >> $nwambackupfile
    600600                    inst=`expr $inst + 1`
     
    612612                nmaskfile=/etc/netmasks
    613613                nmaskbackupfile=$nmaskfile.vbox
     614                networkn=56
    614615                if test -f $nmaskfile; then
    615                     sed -e '/VirtualBox_SectionStart_DoNotEdit/,/VirtualBox_SectionEnd_DoNotEdit/d' $nmaskfile > $nmaskbackupfile
    616                     echo "VirtualBox_SectionStart_DoNotEdit" >> $nmaskbackupfile
    617                     echo "192.168.$networkn.0 255.255.255.0" >> $nmaskbackupfile
    618                     echo "VirtualBox_SectionEnd_DoNotEdit" >> $nmaskbackupfile
     616                    sed -e '/#VirtualBox_SectionStart,/#VirtualBox_SectionEnd/d' $nmaskfile > $nmaskbackupfile
     617                    echo "#VirtualBox_SectionStart" >> $nmaskbackupfile
     618                    inst=0
     619                    networkn=56
     620                    while test $inst -ne 1; do
     621                        echo "192.168.$networkn.0 255.255.255.0" >> $nmaskbackupfile
     622                        inst=`expr $inst + 1`
     623                        networkn=`expr $networkn + 1`
     624                    done
     625                    echo "#VirtualBox_SectionEnd" >> $nmaskbackupfile
    619626                    mv -f $nmaskbackupfile $nmaskfile
    620627                fi
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette