Browse Source

Fixed modprobe wrapper to also send errors to stderr, not just to the log file

0.2-maint
Alejandro Mery 16 years ago
parent
commit
3dd65755ff
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      initramfs/sbin_modprobe.sh

+ 3
- 5
initramfs/sbin_modprobe.sh

@ -13,10 +13,8 @@
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
exec >> /var/log/modprobe.log
exec 2>&1
export PATH
LOG="/var/log/modprobe.log"
echo "[$$] modprobe $*"
exec /bin/busybox modprobe "$@"
echo "[$$] modprobe $*" >> "$LOG"
/bin/busybox modprobe "$@" 2>&1 | tee -a "$LOG" >&2

Loading…
Cancel
Save