summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-05 16:58:09 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-05 16:58:09 -0800
commit3d74a5cb968f18926899b9552320d6c90d4e32bd (patch)
tree43c03c3aebfe16d206e567c89fec8a99e902b42a /debian
parent174861ae24ecf2402055c9d5c659a1bd159f0a77 (diff)
downloadvyatta-cfg-quagga-3d74a5cb968f18926899b9552320d6c90d4e32bd.tar.gz
vyatta-cfg-quagga-3d74a5cb968f18926899b9552320d6c90d4e32bd.zip
Fixup xl2tpd init during install
Bug 5386 Since vyatta-cfg-system is the place where Vyatta does lots of busted package fixups; fix xl2tpd init script there.
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg-system.postinst.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index b2719bc5..d4f93991 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -13,6 +13,14 @@ do
update-rc.d -f ${init} remove >/dev/null
done
+# fix Xl2tpd init script that doesn't create its startup directory
+xl2tpd_init=/etc/init.d/xl2tpd
+if [ -f $xl2tpd_init ] &&
+ ! grep -q 'mkdir -p /var/run/xl2tpd' $xl2tpd_init ; then
+ sed -i -e '/test -x $DAEMON || exit 0/a \
+mkdir -p /var/run/xl2tpd' $xl2tpd_init
+fi
+
# remove extra call to clock setup only need one. this speeds up boot
# Mystery: why does Debian do it twice?
if [ -L /etc/rcS.d/S08hwclockfirst.sh -a -L /etc/rcS.d/S11hwclock.sh ]; then