From 3ba37aea2ada6c3105854e89e86a9e96d8799830 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Sat, 12 May 2012 23:40:12 +0200 Subject: defaultenv: don't overwrite $user in config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch prooved to be useful while working with a colleague on a single machine. It allows to switch the user without editing /env/config by just issuing: export user=me . Note, in bash this construct (i.e. an if without body) bails out with: Syntax error: "fi" unexpected but in hush it seems to do the right thing. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer --- defaultenv/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'defaultenv') diff --git a/defaultenv/config b/defaultenv/config index 3e4c2eef6c..7b61d29730 100644 --- a/defaultenv/config +++ b/defaultenv/config @@ -1,7 +1,9 @@ #!/bin/sh hostname=FIXME -#user= +if [ -z "$user" ]; then +# user= +fi # Enter MAC address here if not retrieved automatically #eth0.ethaddr=de:ad:be:ef:00:00 -- cgit v1.2.3