diff options
Diffstat (limited to 'abs/core-testing/LinHES-config/networkconfig.sh')
-rw-r--r-- | abs/core-testing/LinHES-config/networkconfig.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/networkconfig.sh b/abs/core-testing/LinHES-config/networkconfig.sh index 5611265..38b819a 100644 --- a/abs/core-testing/LinHES-config/networkconfig.sh +++ b/abs/core-testing/LinHES-config/networkconfig.sh @@ -8,7 +8,8 @@ ETCNETDIR=$BASE/etc/net/ifaces function kill_dhcp () { -for i in ${BASE}/etc/dhcpc/dhcpcd-*.pid +#for i in ${BASE}/etc/dhcpc/dhcpcd-*.pid +for i in ${BASE}/var/run/dhcpcd-*.pid do if [ -f ${i} ] then @@ -33,6 +34,23 @@ done } +function kill_dhcp_chroot () +{ +#for i in ${BASE}/etc/dhcpc/dhcpcd-*.pid +for i in ${mountpoint}/var/run/dhcpcd-*.pid +do + if [ -f ${i} ] + then + pid=`cat ${i}` + kill -9 $pid + rm -f ${i} + fi +done + +} + + + function setup_nameserver(){ grep -q $1 ${BASE}/etc/resolv.conf status=$? |