autocore: merge cover-index_files
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
e4733ea494
commit
a94f9e1e9c
@ -1,5 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -f '/etc/rpcd_luci' ] && mv -f '/etc/rpcd_luci' '/usr/libexec/rpcd/luci'
|
||||
[ -f '/etc/rpcd_luci-mod-status.json' ] && { mv -f '/etc/rpcd_luci-mod-status.json' '/usr/share/rpcd/acl.d/luci-mod-status.json'; /etc/init.d/rpcd restart; }
|
||||
[ -f '/etc/rpcd_10_system.js' ] && mv -f '/etc/rpcd_10_system.js' '/www/luci-static/resources/view/status/include/10_system.js'
|
||||
[ ! -f '/etc/rpcd_10_system.js' ] || \
|
||||
mv -f '/etc/rpcd_10_system.js' '/www/luci-static/resources/view/status/include/10_system.js'
|
||||
[ ! -f '/etc/rpcd_luci' ] || \
|
||||
mv -f '/etc/rpcd_luci' '/usr/libexec/rpcd/luci'
|
||||
[ ! -f '/etc/rpcd_luci-mod-status.json' ] || \
|
||||
mv -f '/etc/rpcd_luci-mod-status.json' '/usr/share/rpcd/acl.d/luci-mod-status.json'
|
||||
/etc/init.d/rpcd restart
|
||||
|
||||
exit 0
|
||||
|
||||
@ -36,12 +36,4 @@ start() {
|
||||
ethtool -K "$i" ufo on
|
||||
}
|
||||
done
|
||||
|
||||
[ ! -f '/etc/rpcd_10_system.js' ] || \
|
||||
mv -f '/etc/rpcd_10_system.js' '/www/luci-static/resources/view/status/include/10_system.js'
|
||||
[ ! -f '/etc/rpcd_luci' ] || \
|
||||
{ mv -f '/etc/rpcd_luci' '/usr/libexec/rpcd/luci'; rpcd_restart=1; }
|
||||
[ ! -f '/etc/rpcd_luci-mod-status.json' ] || \
|
||||
{ mv -f '/etc/rpcd_luci-mod-status.json' '/usr/share/rpcd/acl.d/luci-mod-status.json'; rpcd_restart=1; }
|
||||
[ -z "$rpcd_restart" ] || /etc/init.d/rpcd restart
|
||||
} >"/dev/null" 2>&1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user