blob: 07511bf9f7fe50afae7a80f02f7a34461d1ba221 [file] [log] [blame]
#!/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
}