add luci-app-udp2raw and udp2raw-openwrt-makefile

This commit is contained in:
wangyu-
2017-12-29 05:41:04 -06:00
parent 19b4d45636
commit 1e9404e6ec
21 changed files with 1995 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@udp2raw[-1]
add ucitrack udp2raw
set ucitrack.@udp2raw[-1].init=udp2raw
commit ucitrack
EOF
general=$(uci -q get udp2raw.@general[-1])
if [ -z "$general" ]; then
uci -q add udp2raw general
fi
if [ ."$general" != ."general" ]; then
uci -q batch <<-EOF >/dev/null
rename udp2raw.@general[-1]="general"
set udp2raw.general.server="nil"
commit udp2raw
EOF
fi
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
exit 0