From 3d74a5cb968f18926899b9552320d6c90d4e32bd Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 5 Mar 2010 16:58:09 -0800 Subject: 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. --- debian/vyatta-cfg-system.postinst.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'debian') 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 -- cgit v1.2.3