hide some non-critical error messages; prevent newbie bug reports
[openwrt-10.03/.git] / target / default / target_skeleton / sbin / ifup
index f3230ba410a5cca8b9657f3b7a0ce5cb4d7f68ac..9759f8d4d516ab79debfa2c0e041ec6f2a8a284b 100755 (executable)
 
   if_valid $if || return
 
-  $DEBUG ifconfig $if down
+  $DEBUG ifconfig $if down 2>&-
   if [ "${if%%[0-9]}" = "br" ]; then
     stp=$(nvram get ${type}_stp)
-    $DEBUG brctl delbr $if
+    $DEBUG brctl delbr $if 2>&-
     $DEBUG brctl addbr $if
     $DEBUG brctl setfd $if 0
     $DEBUG brctl stp $if ${stp:-0}