xl2tpd: remove module loading from init script
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> git-svn-id: svn://svn.openwrt.org/openwrt/packages@32574 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
486f5cb5ae
commit
0faa243f8e
@ -8,16 +8,6 @@ RUN_D=/var/run
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user