Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
0eae0372
Unverified
Commit
0eae0372
authored
Aug 19, 2025
by
wukongdaily
Committed by
GitHub
Aug 19, 2025
Browse files
Fix:解决集成进阶设置后命令行出现的zsh not found提示
https://github.com/wukongdaily/AutoBuildImmortalWrt/discussions/338
parent
7154de9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
files/etc/uci-defaults/99-custom.sh
files/etc/uci-defaults/99-custom.sh
+7
-0
No files found.
files/etc/uci-defaults/99-custom.sh
View file @
0eae0372
...
@@ -171,4 +171,11 @@ FILE_PATH="/etc/openwrt_release"
...
@@ -171,4 +171,11 @@ FILE_PATH="/etc/openwrt_release"
NEW_DESCRIPTION
=
"Packaged by wukongdaily"
NEW_DESCRIPTION
=
"Packaged by wukongdaily"
sed
-i
"s/DISTRIB_DESCRIPTION='[^']*'/DISTRIB_DESCRIPTION='
$NEW_DESCRIPTION
'/"
"
$FILE_PATH
"
sed
-i
"s/DISTRIB_DESCRIPTION='[^']*'/DISTRIB_DESCRIPTION='
$NEW_DESCRIPTION
'/"
"
$FILE_PATH
"
# 若luci-app-advancedplus (进阶设置)已安装 则去除zsh的调用 防止命令行报 /usb/bin/zsh: not found的提示
if
opkg list-installed |
grep
-q
'^luci-app-advancedplus '
;
then
sed
-i
'/\/usr\/bin\/zsh/d'
/etc/profile
sed
-i
'/\/bin\/zsh/d'
/etc/init.d/advancedplus
sed
-i
'/\/usr\/bin\/zsh/d'
/etc/init.d/advancedplus
fi
exit
0
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment