Commit d050a0e 1 parent 76d8ec3 commit d050a0e Copy full SHA for d050a0e
File tree 1 file changed +5
-8
lines changed
decompressed/gui_file/usr/share/transformer/scripts
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -181,17 +181,14 @@ app_luci() {
181
181
luci_install_arm () {
182
182
opkg update
183
183
[ ! -f /rom/usr/lib/libjson-c.so.2 ] && ln -s /usr/lib/libjson-c.so.4 /usr/lib/libjson-c.so.2 # workaround for 18.x feeds used on 19.x firmware
184
- mv /usr/lib/lua/uci.so /usr/lib/lua/uci.so_bak
185
- if [ -f /etc/config/uhttpd ]; then
186
- rm /etc/config/uhttpd
187
- fi
184
+ rm -rf /etc/config/uhttpd
188
185
opkg install --force-reinstall libuci-lua luci rpcd
186
+ [ ! -f /etc/init.d/uhttpd ] && opkg install uhttpd # only on 19.x is not getting installed as dependency?
189
187
mkdir /www_luci
190
188
mv /www/cgi-bin /www_luci/
191
189
mv /www/luci-static /www_luci/
192
190
mv /www/index.html /www_luci/
193
- rm /usr/lib/lua/uci.so
194
- mv /usr/lib/lua/uci.so_bak /usr/lib/lua/uci.so
191
+ cp /rom/usr/lib/lua/uci.so /usr/lib/lua/ # restore lib as it gets removed by libuci-lua
195
192
sed -i ' s/require "uci"/require "uci_luci"/g' /usr/lib/lua/luci/model/uci.lua # modify luci to load his original lib with different name
196
193
197
194
if [ ! " $( uci get uhttpd.main.listen_http | grep 9080) " ]; then
@@ -246,8 +243,8 @@ app_luci() {
246
243
[ ! -f /rom/usr/lib/libjson-c.so.2 ] && rm /usr/lib/libjson-c.so.2 # workaround for 18.x feeds used on 19.x firmware
247
244
cp /rom/usr/lib/lua/uci.so /usr/lib/lua/ # restore lib as it gets removed by libuci-lua
248
245
249
- rm -r /www_luci
250
- rm /etc/config/uhttpd
246
+ rm -rf /www_luci
247
+ rm -rf /etc/config/uhttpd
251
248
}
252
249
253
250
luci_remove_mips () {
You can’t perform that action at this time.
0 commit comments