]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/cdrom/roottree/etc/start_network.sh
Update
[bacula/rescue] / rescue / linux / cdrom / roottree / etc / start_network.sh
1 #! /bin/sh
2 #
3 # This script is not used by Bacula. You should try the script
4 #  in bacula-hostname/start_network.
5 # We leave this here because it could be useful if you are 
6 #  getting an IP address with DHCP.  You might need to change
7 #  dhcpcd below to dhclient if you are running RedHat
8 #
9
10 DHCPCD=/bin/dhcpcd
11 if [ ! -x $DHCPCD ] ; then
12    DHCPCD=/bin/dhclient
13 fi
14
15 if ifconfig eth0 >/dev/null 2>&1 ; then
16     echo "Setting up network..."
17     $DHCPCD eth0
18     echo "done"
19
20     ifconfig
21     exit
22 fi
23
24 echo "No network card present, cannot configure network"
25 sleep 3