2015-03-28 20:33:17 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
|
|
|
|
|
|
|
if test "$IPV4" = "dhcp"; then
|
2015-04-09 09:53:52 +02:00
|
|
|
exec /sbin/udhcpc -f -S -p /var/run/udhcpc.pid -s /etc/init.d/dhcpc-event
|
2015-03-28 20:33:17 +01:00
|
|
|
else
|
|
|
|
ifconfig eth0 $IPV4 netmask $IPV4_NETMASK broadcast $IPV4_BROADCAST
|
|
|
|
route add default gw $IPV4_GATEWAY
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -r /etc/sysconfig/resolv.conf; then
|
|
|
|
ln -s sysconfig/resolv.conf /etc/resolv.conf
|
|
|
|
fi
|
2015-04-09 09:53:52 +02:00
|
|
|
|
|
|
|
# notify satip init script
|
|
|
|
touch /tmp/satip-network
|
|
|
|
echo "ok" | nc 127.0.0.1 999 2> /dev/null
|
|
|
|
sleep 0.5
|
|
|
|
echo "ok" | nc 127.0.0.1 999 2> /dev/null
|
|
|
|
sleep 1
|
|
|
|
echo "ok" | nc 127.0.0.1 999 2> /dev/null
|