default-settings: do not depend on bash by default
This commit is contained in:
parent
7e32e67258
commit
319a55923f
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user