OSDN Git Service

autocore: fix build error&add missing rpcd
[immortalwrt/immortalwrt.git] / package / emortal / autocore / files / generic / 090-cover-index_files
1 #!/bin/sh
2
3 [ ! -f '/etc/rpcd_10_system.js' ] || \
4         mv -f '/etc/rpcd_10_system.js' '/www/luci-static/resources/view/status/include/10_system.js'
5 [ ! -f '/etc/rpcd_21_ethinfo.js' ] || \
6         mv -f '/etc/rpcd_21_ethinfo.js' '/www/luci-static/resources/view/status/include/21_ethinfo.js'
7 [ ! -f '/etc/rpcd_luci' ] || \
8         mv -f '/etc/rpcd_luci' '/usr/libexec/rpcd/luci'
9 [ ! -f '/etc/rpcd_luci-mod-status.json' ] || \
10         mv -f '/etc/rpcd_luci-mod-status.json' '/usr/share/rpcd/acl.d/luci-mod-status.json'
11 /etc/init.d/rpcd restart
12
13 exit 0