summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r--debian/vyatta-cfg-system.postinst.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 3b9d4d70..ce9e0a81 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -34,7 +34,7 @@ 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
+ sed -i -e '/net.agent/s/^SUBSYSTEM/#&/' /etc/udev/rules.d/80-drivers.rules
fi
if [ "$sysconfdir" != "/etc" ]; then
@@ -114,6 +114,11 @@ EOF
cp $sysconfdir/$f /etc/ssh/$f
fi
done
+
+ # replace debian /etc/ntp.conf
+ if [ -f $sysconfdir/ntp.conf ]; then
+ cp $sysconfdir/ntp.conf /etc/ntp.conf
+ fi
fi
# update crontab for logrotate