diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-22 10:12:37 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-22 10:12:37 -0700 |
commit | e457435ce84923df3d93ceda0af9962126ab7aa9 (patch) | |
tree | e995afbdadeb6a1d758a68df1c47ce4178f64b04 | |
parent | a999d5dedfc4b5cf1fed6e5bf4819cb0d9db85bb (diff) | |
download | vyatta-cfg-system-e457435ce84923df3d93ceda0af9962126ab7aa9.tar.gz vyatta-cfg-system-e457435ce84923df3d93ceda0af9962126ab7aa9.zip |
Don't run net.agent
By default, vyatta doesn't have package ifupdown, so no need
for net.agent
Bug 3885
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index ffea6e93..3b9d4d70 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -31,6 +31,12 @@ esac ln -sf ../vyatta-net.rules /etc/udev/rules.d/$vyatta_net_rules +# remove debian rules that use /etc/network/interfaces +# to avoid warning about missing ifup (bug 3885) +if [ -x /sbin/ifup ]; then + sed -i -e 'net.agent/s/^SUBSYSTEM/#&/' /etc/udev/rules.d/80-drivers.rules +fi + if [ "$sysconfdir" != "/etc" ]; then touch /etc/sudoers cp -p /etc/sudoers /etc/sudoers.bak |