]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/cdrom/roottree/etc/start_network.sh
65a22fe30cc0c25f7e931d50cb245f1c559e09f8
[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 if ifconfig eth0 >/dev/null 2>&1 ; then
11
12     echo "Setting up network..."
13     /bin/dhcpcd $eth0
14
15     echo "done"
16
17     ifconfig
18     exit
19
20 fi
21
22 echo "No network card present, cannot configure network"
23 sleep 3