Remove module loading from xl2tpd init-script now that module gets loaded
properly during boot (since that was already fixed in #32562, this partly
reverts #32563)
Signed-off-by: Daniel Golle <dgolle@allnet.de>
SVN-Revision: 32574
PID_F=$RUN_D/$BIN.pid
start() {
- # make sure kernel modules are loaded before starting xl2tpd, otherwise
- # kernel-mode l2tp support won't work
- local load
- for module in slhc ppp_generic ppp_async pppox l2tp_core l2tp_netlink l2tp_ppp ; do
- grep -q "$module" /proc/modules && continue
- /sbin/insmod $module 2>&- >&-
- load=1
- done
- [ "$load" = "1" ] && sleep 1
-
mkdir -p $RUN_D/$BIN
[ -f $DEFAULT ] && . $DEFAULT
$BIN $OPTIONS