summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 10:56:31 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 13:52:59 +0200
commit171da3d79b0494af47e8c8c3815e8abec385b7d3 (patch)
tree7c1533a6ecf7424185d90bf2470c6a27f11760e5 /rc.sysinit
parent7cd8819a634c8438efcd6861b6a234913ff8a8c6 (diff)
Some more cosmetics
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 5167a14..52d9d4b 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -244,8 +244,7 @@ if [[ -f $RANDOM_SEED ]]; then
fi
stat_busy "Removing Leftover Files"
- rm -rf /etc/{nologin,shutdownpid} /forcefsck &>/dev/null
- rm -rf /tmp/* /tmp/.* &>/dev/null
+ rm -rf /etc/{nologin,shutdownpid} /forcefsck /tmp/* /tmp/.*
[[ ! -L /var/lock ]] && rm -rf /var/lock/*
[[ ! -L /var/run && -d /var/run ]] && find /var/run/ \! -type d -delete
[[ ! -L /var/run && ! -L /var/run/daemons ]] &&
@@ -258,7 +257,7 @@ stat_done
if [[ $HOSTNAME ]]; then
stat_busy "Setting Hostname: $HOSTNAME"
- echo $HOSTNAME > /proc/sys/kernel/hostname
+ echo "$HOSTNAME" > /proc/sys/kernel/hostname
stat_done
fi
@@ -296,7 +295,8 @@ fi
# Set console font if required
set_consolefont
-if [[ -e /proc/sys/kernel/dmesg_restrict && $(< /proc/sys/kernel/dmesg_restrict) -eq 1 ]]; then
+if [[ -e /proc/sys/kernel/dmesg_restrict ]] &&
+ (( $(< /proc/sys/kernel/dmesg_restrict) == 1 )); then
install -Tm 0600 <( dmesg ) /var/log/dmesg.log
else
install -Tm 0644 <( dmesg ) /var/log/dmesg.log