Skip to content

Commit

Permalink
Update opkginstall.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 authored Jun 3, 2021
1 parent a62e150 commit 0f8dc6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devices/common/patches/opkginstall.patch
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -199,6 +199,10 @@ default_prerm() {
@@ -199,6 +199,11 @@ default_prerm() {
fi
done

Expand All @@ -41,6 +41,7 @@

+ grep -q '"nas",' /usr/lib/lua/luci/controller/*.lua && ! grep -q '_("NAS")' /usr/lib/lua/luci/controller/*.lua &&
+ sed -i 's/local page/local page\nentry({"admin", "nas"}, firstchild(), _("NAS") , 45).dependent = false/' /usr/lib/lua/luci/controller/turboacc.lua
+ sed -i 's/ifname/device/' /etc/config/network
+
if [ -d "$root/rootfs-overlay" ]; then
cp -R $root/rootfs-overlay/. $root/
Expand Down

0 comments on commit 0f8dc6d

Please sign in to comment.