summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-24 10:13:15 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-24 10:13:15 -0700
commitfb16c6d813723df473c45dddba24266a4daf8edc (patch)
tree9c3770fdddcb7657912493502f789e2158ece27f
parent8a88cafaef48dbad48aa6732cf0ba540024a11dc (diff)
downloadvyatta-cfg-quagga-fb16c6d813723df473c45dddba24266a4daf8edc.tar.gz
vyatta-cfg-quagga-fb16c6d813723df473c45dddba24266a4daf8edc.zip
Fix post install script to adjust ntp.conf and net.agent
ISO is still not coming out with correct Vyatta values.
-rw-r--r--debian/vyatta-cfg-system.postinst.in16
1 files changed, 6 insertions, 10 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index ce9e0a81..57f4b043 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -31,12 +31,6 @@ 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
@@ -115,10 +109,12 @@ EOF
fi
done
- # replace debian /etc/ntp.conf
- if [ -f $sysconfdir/ntp.conf ]; then
- cp $sysconfdir/ntp.conf /etc/ntp.conf
- fi
+ # replace debian /etc/ntp.conf with Vyatta version
+ cp $sysconfdir/ntp.conf /etc/ntp.conf
+
+ # remove debian rules that use /etc/network/interfaces
+ # to avoid warning about missing ifup (bug 3885)
+ sed -i -e '/net.agent/s/^SUBSYSTEM/#&/' /etc/udev/rules.d/80-drivers.rules
fi
# update crontab for logrotate