default-settings: do not depend on bash by default

This commit is contained in:
CN_SZTL 2020-11-28 21:37:55 +08:00
parent 7e32e67258
commit 319a55923f
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 2 additions and 3 deletions

View File

@ -21,8 +21,7 @@ define Package/default-settings
CATEGORY:=LuCI
TITLE:=LuCI support for Default Settings
PKGARCH:=all
DEPENDS:=+luci-lib-base +@LUCI_LANG_zh_Hans \
+bash
DEPENDS:=+luci-lib-base +@LUCI_LANG_en +@LUCI_LANG_zh_Hans
endef
define Package/default-settings/description

View File

@ -30,7 +30,7 @@ sed -i 's#https://downloads.openwrt.org#https://mirrors.cloud.tencent.com/lede#g
sed -i "s/# //g" /etc/opkg/distfeeds.conf
sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow
sed -i 's|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g' /etc/passwd
[ -f '/bin/bash' ] && sed -i 's|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g' /etc/passwd
sed -i '/option disabled/d' /etc/config/wireless
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh