From ad36d36db7fd095f60da16867200b805733ca2dd Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 4 Nov 2012 12:14:13 +0100 Subject: [PATCH] CMDLINE handling: do not use 'local' outside a function Reported by Dietmar Segbert on the Grml user mailing list. --- autoconfig.functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoconfig.functions b/autoconfig.functions index 2736153..0e962c5 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -42,9 +42,9 @@ if [ -z "$CMDLINE" ]; then [ -d /live/image/bootparams/ ] && CMDLINE="$CMDLINE $(cat /live/image/bootparams/* | tr '\n' ' ')" modprobe 9p 2>/dev/null || true if grep -q 9p /proc/filesystems ; then - local TAG="grml-parameters" + TAG="grml-parameters" if grep -q "$TAG" /sys/bus/virtio/devices/*/mount_tag 2>/dev/null ; then - local MOUNTDIR="$(mktemp -d)" + MOUNTDIR="$(mktemp -d)" mount -t 9p -o trans=virtio,ro "$TAG" "$MOUNTDIR" CMDLINE="$CMDLINE $(cat "$MOUNTDIR"/* 2>/dev/null | tr '\n' ' ')" umount "$MOUNTDIR" -- 2.1.4