#!/bin/sh /etc/rc.common | |
START=11 | |
STOP=90 | |
start() { | |
PIPE=`uci get cmdline.PIPE 2> /dev/null` | |
if [ "$PIPE" == "1" ]; then | |
/usr/bin/piped -a -r & | |
fi | |
} | |
stop() { | |
PIPE=`uci get cmdline.PIPE 2> /dev/null` | |
if [ "$PIPE" == "1" ]; then | |
ubus call piped stop | |
rmmod mrvlpipe.ko | |
else | |
rmmod mfp.ko | |
fi | |
} |