mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2026-11-05 16:18:44 +05:00
Обернул скрипт в init.d файле в функции
This commit is contained in:
1 parent
3bf1ac9fa1
commit
8f0fdfef74
1 file changed
+14
@@ -2,6 +2,7 @@
|
||||
|
||||
START=99
|
||||
|
||||
script () {
|
||||
dir=/tmp/lst
|
||||
SUBNET=https://antifilter.download/list/subnet.lst
|
||||
IP=https://antifilter.download/list/ip.lst
|
||||
@@ -98,3 +99,16 @@ echo "Dnsmasq restart"
|
||||
|
||||
echo "Firewall restart"
|
||||
/etc/init.d/firewall restart
|
||||
}
|
||||
|
||||
start () {
|
||||
script
|
||||
}
|
||||
|
||||
restart () {
|
||||
script
|
||||
}
|
||||
|
||||
reload () {
|
||||
script
|
||||
}
|
||||
Reference in new issue
Block a user