* Gabriel Tolón <[email protected]> [28.05.2013 07:51]:
> root@OpenWrt:/# rmmod ip_tables
> rmmod: can't unload 'ip_tables': Resource temporarily unavailable
>
> I guess that's because some dependencies, so I tried removing other
> modules first, without success. Also I searched for a modprobe
> package in opkg, but I couldn't find it.
simply hijack the function load_modules() in /lib/functions.sh
keep it simple and just add these lines at the end of /lib/functions.sh:
load_modules()
{
local file line
while [ -n "$1" ]; do
file="$1"
shift
line="$( cat "$file" )"
test ${#line} -eq 0 && continue
while read line; do
case "$line" in
nf_*|ip_*|ipt_*|iptable*|x_*)
# ignore iptables stuff
;;
*)
insmod $line
;;
esac
done
done
}
bye, bastian
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel