Changeset 426025b


Ignore:
Timestamp:
08/14/13 09:43:47 (16 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
d371dd6
Parents:
d277133
Message:

Enable starting networking on install media

Location:
overlays/install-overlay/root
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • overlays/install-overlay/root/PCBSDStart.sh

    r794e0d2 r426025b  
    3838# Enable the debug version of pc-sysinstall 
    3939/root/debugpcsysinstall.sh 
     40 
     41# Set all NICS to DHCP 
     42NICS=`ifconfig -l` 
     43for i in $NICS 
     44do 
     45  ifconfig ${i} | grep -q "status: active" 
     46  if [ $? -eq 0 ] ; then 
     47    echo "Enabling networking on ${i}..." 
     48    (dhclient ${i} >/dev/null 2>/dev/null ) & 
     49  fi 
     50done 
    4051 
    4152# Check if we are booting in LIVE or INSTALL mode 
  • overlays/install-overlay/root/PCBSDStartLive.sh

    r1620346 r426025b  
    4141/usr/local/bin/${dCmd}" >/root/.xinitrc 
    4242 
    43 # Set all NICS to DHCP 
    44 echo "Detecting NICs..." 
    45 NICS=`ifconfig -l` 
    46 for i in $NICS 
    47 do 
    48   if [ "$i" != "lo0" -a "$i" != "fxp0" -a "$i" != "pfsync0" -a "$i" != "pflog0" ] 
    49   then 
    50     (dhclient ${i} >/dev/null 2>/dev/null ) & 
    51   fi 
    52 done 
    53  
    54  
    5543# Now run the X auto-detection 
    5644detect_x 
Note: See TracChangeset for help on using the changeset viewer.