aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-28 00:22:52 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-28 15:39:42 +0200
commit9abda43474520dbc98674fed13bb647322e3c30f (patch)
tree4af4173ca6f5d4f946589791d17dc918b8966ad7 /rc.sysinit
parentdc2e0226f91cee87b1c4157f91215caac8b6d929 (diff)
downloadinitscripts-9abda43474520dbc98674fed13bb647322e3c30f.tar.xz
rc.sysinit: Add status output for mtab and dmesg.log creation
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit26
1 files changed, 15 insertions, 11 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 7f1089e..7b086fa 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -183,11 +183,13 @@ status "Remounting Root Read/Write" \
# don't touch /etc/mtab if it is a symlink to /proc/self/mounts
if [[ ! -L /etc/mtab ]]; then
- if [[ -x $(type -P findmnt) && -e /proc/self/mountinfo ]]; then
- findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
- else
- cat /proc/mounts >| /etc/mtab
- fi
+ stat_busy "Creating mtab"
+ if [[ -x $(type -P findmnt) && -e /proc/self/mountinfo ]]; then
+ findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
+ else
+ cat /proc/mounts >| /etc/mtab
+ fi
+ (( $? == 0 )) && stat_done || stat_fail
fi
# now mount all the local filesystems
@@ -258,12 +260,14 @@ fi
# Set console font if required
set_consolefont
-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
-fi
+stat_busy "Saving dmesg Log"
+ 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
+ fi
+(( $? == 0 )) && stat_done || stat_fail
run_hook sysinit_end