ltq-app-vdsl: convert init script to procd, add support for switching between atm...
[openwrt/svn-archive/archive.git] / package / network / config / ltq-vdsl-app / files / vdsl_cpe_control_wrapper
1 #!/bin/sh
2
3 for mod in $UNLOAD; do
4 grep -q "$mod " /proc/modules && rmmod "$mod"
5 done
6 for mod in $LOAD; do
7 grep -q "$mod " /proc/modules || insmod "$mod"
8 done
9
10 exec /sbin/vdsl_cpe_control "$@"