diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-27 16:17:59 +0200 |
---|---|---|
committer | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-28 14:33:03 +0200 |
commit | 52299efc246f6f83aac76b39330845aa93742542 (patch) | |
tree | c5777e2f93db6b166d7ef144f2a5a7a081dd78b7 /functions | |
parent | 8decd5c4c71ed0ac0df54eba70a4a52c44f08395 (diff) |
Fix '>|' not used allways when redirecting to files
This avoids errors if one should set the noclobber shell option somewhere (within a daemon script or some custom function).
We already had this, but it seems gone lost mostly.
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -178,7 +178,7 @@ in_array() { add_daemon() { [[ -d /run/daemons ]] || /bin/mkdir -p /run/daemons - > /run/daemons/"$1" + >| /run/daemons/"$1" } rm_daemon() { @@ -376,7 +376,7 @@ fsck_all() { FORCEFSCK= [[ -f /forcefsck ]] || in_array forcefsck $(< /proc/cmdline) && FORCEFSCK="-- -f" run_hook sysinit_prefsck - fsck -A -T -C$FSCK_FD -a -t "$NETFS,noopts=_netdev" $FORCEFSCK >$FSCK_OUT 2>$FSCK_ERR + fsck -A -T -C$FSCK_FD -a -t "$NETFS,noopts=_netdev" $FORCEFSCK >|$FSCK_OUT 2>|$FSCK_ERR local fsckret=$? if (( fsckret > 1 )); then stat_fail |