Merge pull request #3631 from TDT-AG/pr/20200214-luci-build

build: unify and clean up the  uci-defaults scripts
This commit is contained in:
Florian Eckert 2020-02-15 13:05:21 +01:00 committed by GitHub
commit 07f6822b66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 9 additions and 109 deletions

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,5 +0,0 @@
#!/bin/sh
rm -rf /var/luci-modulecache/; rm -f /var/luci-indexcache;
exit 0

View file

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -14,5 +14,4 @@ if [ ."$(uci -q get aria2.main)" != ."aria2" ]; then
EOF
fi
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,6 +1,5 @@
#!/bin/sh
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache/
/etc/init.d/uhttpd restart
/etc/init.d/rpcd reload

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,3 +0,0 @@
#!/bin/sh
exit 0

View file

@ -6,5 +6,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
return 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -8,6 +8,4 @@ uci -q batch <<-EOF >/dev/null
commit dynapoint
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -15,5 +15,4 @@ uci set fwknopd.@config[0].ENABLE_IPT_FORWARDING='y'
uci set fwknopd.@config[0].ENABLE_NAT_DNS='y'
uci commit fwknopd
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,3 +0,0 @@
#!/bin/sh
rm -rf /var/luci-modulecache/; rm -f /var/luci-indexcache;
exit 0

View file

@ -6,5 +6,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -15,7 +15,4 @@ uci -q get mwan3.globals >/dev/null || {
uci commit mwan3
}
# remove LuCI cache
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,7 +0,0 @@
#!/bin/sh
# Copyright (C) 2017 Steven Hessing (steven.hessing@live.com)
# This is free software, licensed under the GNU General Public License v3
rm -f /tmp/luci-indexcache
exit 0

View file

@ -18,5 +18,4 @@ if [ "$version" = "2.7.4" ] && [ "$release" -lt 8 ]; then
EOF
fi
rm -f /tmp/luci-indexcache
exit 0

View file

@ -10,5 +10,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -7,6 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -7,6 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,6 +1,5 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
mkdir -p /etc/shadowsocks-libev
/etc/init.d/rpcd reload
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -4,5 +4,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -12,5 +12,4 @@ EOF
[ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \
ln -s /tmp/rrdimg /www/rrdimg
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -1,3 +0,0 @@
#!/bin/sh
rm -rf /var/luci-modulecache/; rm -f /var/luci-indexcache;
exit 0

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View file

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View file

@ -226,6 +226,15 @@ define Package/$(PKG_NAME)/postinst
[ -n "$${IPKG_INSTROOT}" ] || {$(foreach script,$(LUCI_DEFAULTS),
(. /etc/uci-defaults/$(script)) && rm -f /etc/uci-defaults/$(script))
rm -f /tmp/luci-indexcache
rm -rf /tmp/luci-modulecache/
exit 0
}
endef
else
define Package/$(PKG_NAME)/postinst
[ -n "$${IPKG_INSTROOT}" ] || {
rm -f /tmp/luci-indexcache
rm -rf /tmp/luci-modulecache/
exit 0
}
endef