From 7788571a9854b58c9bee058a36db4b1d0d41f614 Mon Sep 17 00:00:00 2001 From: "Kurt J. Bosch" Date: Mon, 27 Jun 2011 23:26:19 +0200 Subject: rc.sysinit: Get rid of eval --- rc.sysinit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 06b287c..9b2a009 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -226,9 +226,10 @@ stat_busy "Removing Leftover Files" mkdir -m 1777 /tmp/.{X11,ICE}-unix stat_done -[[ $HOSTNAME ]] && - status "Setting Hostname: $HOSTNAME" \ - eval 'echo "$HOSTNAME" > /proc/sys/kernel/hostname' +if [[ $HOSTNAME ]]; then + stat_busy "Setting Hostname: $HOSTNAME" + echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail +fi # Flush old locale settings and set user defined locale stat_busy "Setting Locale: ${LOCALE:=en_US}" -- cgit v1.2.3