diff --git a/usermngr/Makefile b/usermngr/Makefile index ed2816771..0bb1048ba 100644 --- a/usermngr/Makefile +++ b/usermngr/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usermngr -PKG_VERSION:=1.3.4 +PKG_VERSION:=1.3.5 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) diff --git a/usermngr/files/etc/uci-defaults/91-sync-shells b/usermngr/files/etc/uci-defaults/91-sync-shells index cc5c3f958..489e420fe 100644 --- a/usermngr/files/etc/uci-defaults/91-sync-shells +++ b/usermngr/files/etc/uci-defaults/91-sync-shells @@ -6,6 +6,10 @@ add_system_shells() { system_shells=$(cat /etc/shells) for line in $system_shells do + if [ "${line}" = "/bin/ash" ]; then + continue + fi + shell_name=$(basename "${line}") # Add the shell in UCI if not exists sec=$(uci -q show users | grep -E "^users\.@shell\[[0-9]+\]\.name=\'$shell_name\'$") @@ -60,3 +64,8 @@ remove_shell() { config_load users add_system_shells config_foreach remove_shell shell + +# Remove ash +uci -q delete users.shell_ash + +exit 0