# NOTE: This is added to relieve one site's Cisco router configuration that
# fails to recognize the host once the arping is sent out.
+# NOTE: this is pretty fragile, and fails on fedora 10 that as of today (oct. 20 2009)
+# has initscripts-8.86.3-1.i386 which reads almost identical but with /sbin/arping instead
cat <<\EOF | patch -d ${vdir}/etc/sysconfig/network-scripts/
--- ifup-eth 2008-07-08 13:19:49.000000000 -0400
+++ ifup-eth-orig 2008-07-08 13:20:02.000000000 -0400
# modify the sudoers file to remove the 'requiretty' attribute
echo "Removing requiretty from default /etc/sudoers file"
-sed -i -e "s/Defaults requiretty/#Defaults requiretty/" ${vdir}/etc/sudoers
+sed -i -e 's,^\(Defaults.*requiretty\),#\1,' /etc/sudoers