suppress errors on ifdown wan when running reboot
authorFelix Fietkau <nbd@openwrt.org>
Fri, 14 Oct 2005 12:01:56 +0000 (12:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 14 Oct 2005 12:01:56 +0000 (12:01 +0000)
SVN-Revision: 2106

openwrt/package/base-files/default/etc/profile

index cf7c5bdb911990a822865e8097cdeefe6208ee7b..9f6e0cc18d6024e07fdd4ac0eb251ba5119d5b3b 100644 (file)
@@ -9,4 +9,4 @@ alias vim=vi
 
 arp() { cat /proc/net/arp; }
 ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
-reboot() { ifdown wan; /sbin/reboot; }
+reboot() { ifdown wan 2>&1 >/dev/null ; /sbin/reboot; }