RSS Git Download  Clone
Raw View History
Blames found: 1 Mode: text Binary: false


Hang on, we reloading big blames...
#!/bin/sh ################################################################################ # dhcpConfig Sets up network interface # T.Barnaby, BEAM Ltd, 16/2/05 ################################################################################ # configureNetwork(){ ifconfig $interface $ip if [ -n "$router" ]; then route add default gw $router > /dev/null 2>&1 fi echo "dhcp_interface=$interface" > /tmp/dhcpInfo echo "dhcp_ip=$ip" >> /tmp/dhcpInfo echo "dhcp_mask=$mask" >> /tmp/dhcpInfo echo "dhcp_subnet=$subnet" >> /tmp/dhcpInfo echo "dhcp_broadcast=$broadcast" >> /tmp/dhcpInfo echo "dhcp_router=$router" >> /tmp/dhcpInfo echo "dhcp_dns=$dns" >> /tmp/dhcpInfo echo "dhcp_namesvr=$namesvr" >> /tmp/dhcpInfo echo "dhcp_hostname=$hostname" >> /tmp/dhcpInfo echo "dhcp_domain=$domain" >> /tmp/dhcpInfo echo "dhcp_siaddr=$siaddr" >> /tmp/dhcpInfo echo "dhcp_rootpath=$rootpath" >> /tmp/dhcpInfo echo "dhcp_timesvr=$timesvr" >> /tmp/dhcpInfo echo "dhcp_ntpsrv=$ntpsrv" >> /tmp/dhcpInfo echo "dhcp_tftp=$tftp" >> /tmp/dhcpInfo echo "dhcp_timezone=$timezone" >> /tmp/dhcpInfo echo "dhcp_logsvr=$logsvr" >> /tmp/dhcpInfo echo "dhcp_swapsvr=$swapsvr" >> /tmp/dhcpInfo } case $1 in # deconfig) ifconfig $interface 0.0.0.0;; bound) configureNetwork;; esac exit 0