From 1c09849f6cf1b8bd94819ca11910ce444c3d3019 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 24 Sep 2016 14:30:24 +0200 Subject: 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 --- package/base-files/files/etc/rc.button/rfkill | 2 +- package/base-files/files/etc/uci-defaults/10_migrate-shadow | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'package') diff --git a/package/base-files/files/etc/rc.button/rfkill b/package/base-files/files/etc/rc.button/rfkill index 9e2c12f8c3..fbdda40ed5 100755 --- a/package/base-files/files/etc/rc.button/rfkill +++ b/package/base-files/files/etc/rc.button/rfkill @@ -4,7 +4,7 @@ . /lib/functions.sh -local rfkill_state=0 +rfkill_state=0 wifi_rfkill_set() { uci set wireless.$1.disabled=$rfkill_state 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" -- cgit v1.2.3