aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/uci-defaults
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-09-24 14:30:24 +0200
committerJo-Philipp Wich <jo@mein.io>2016-09-24 14:38:20 +0200
commit1c09849f6cf1b8bd94819ca11910ce444c3d3019 (patch)
tree5ceeb7ebf279d8208045f7ba83264bbed0e45115 /package/base-files/files/etc/uci-defaults
parentdf9efc94970ccc1e43915839ec3f49d54729cc3d (diff)
downloadupstream-1c09849f6cf1b8bd94819ca11910ce444c3d3019.tar.gz
upstream-1c09849f6cf1b8bd94819ca11910ce444c3d3019.tar.bz2
upstream-1c09849f6cf1b8bd94819ca11910ce444c3d3019.zip
treewide: remove bad local shell variable declarations
Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/base-files/files/etc/uci-defaults')
-rw-r--r--package/base-files/files/etc/uci-defaults/10_migrate-shadow4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/etc/uci-defaults/10_migrate-shadow b/package/base-files/files/etc/uci-defaults/10_migrate-shadow
index b7ea5718c9..a354844fe4 100644
--- a/package/base-files/files/etc/uci-defaults/10_migrate-shadow
+++ b/package/base-files/files/etc/uci-defaults/10_migrate-shadow
@@ -1,7 +1,7 @@
#!/bin/sh
-local ppwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/passwd)"
-local spwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/shadow)"
+ppwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/passwd)"
+spwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/shadow)"
if [ -n "${ppwd#[\!x]}" ] && [ -z "${spwd#[\!x]}" ]; then
logger -t migrate-shadow "Moving root password hash into shadow database"