Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Enable starting networking on install media
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Aug 14, 2013
1 parent d277133 commit 426025b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
11 changes: 11 additions & 0 deletions overlays/install-overlay/root/PCBSDStart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ fi
# Enable the debug version of pc-sysinstall
/root/debugpcsysinstall.sh

# Set all NICS to DHCP
NICS=`ifconfig -l`
for i in $NICS
do
ifconfig ${i} | grep -q "status: active"
if [ $? -eq 0 ] ; then
echo "Enabling networking on ${i}..."
(dhclient ${i} >/dev/null 2>/dev/null ) &
fi
done

# Check if we are booting in LIVE or INSTALL mode
if [ -e "/usr/pcbsd-live" ]; then

Expand Down
12 changes: 0 additions & 12 deletions overlays/install-overlay/root/PCBSDStartLive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ numlockx off
/usr/local/bin/${dCmd}" >/root/.xinitrc

# Set all NICS to DHCP
echo "Detecting NICs..."
NICS=`ifconfig -l`
for i in $NICS
do
if [ "$i" != "lo0" -a "$i" != "fxp0" -a "$i" != "pfsync0" -a "$i" != "pflog0" ]
then
(dhclient ${i} >/dev/null 2>/dev/null ) &
fi
done


# Now run the X auto-detection
detect_x

Expand Down

0 comments on commit 426025b

Please sign in to comment.