diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-04 18:49:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-04 18:49:09 (GMT) |
commit | 29e945b91760568116a21e0076fae046b33a2663 (patch) | |
tree | 5623cb38e621cb4be85785fca6ec477ef9e7e83f /abs/core-testing/LinHES-config/networkconfig.sh | |
parent | 3cc7a26ef6ce5928401162cff95e8a860c8daa36 (diff) | |
download | linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.zip linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.tar.gz linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.tar.bz2 |
Add more useful debugging output.
Cleanup some error messages.
introduce cp_and_log function.
introduce kill_dhcp_chroot
fix umounting of /new_boot
fix copying of mdadm.conf
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=$? |