diff options
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 8 |
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 |