mkdir -p /run/lock /run/user
fi
- # Restart auto interfaces
- for IF in $(grep "^auto" /etc/network/interfaces) ; do
- [ "$IF" = auto ] && continue
- ifdown $IF
- ifup $IF
- done
-
- # Restart services
- SERVICES=( )
- for S in ${SERVICES[@]} ; do
- service $S restart
- done
+ {
+ # Restart auto interfaces
+ for IF in $(grep "^auto" /etc/network/interfaces) ; do
+ [ -e "/sys/class/net/$IF" ] || continue
+ ifdown $IF
+ ifup $IF
+ done
+
+ # Restart services
+ SERVICES=( )
+ for S in ${SERVICES[@]} ; do
+ service $S restart
+ done
+ } &
+ NETPID=$!
-} >& /var/log/startup-$NOW.log
+} |& tee /var/log/startup-$NOW.log
exec /bin/bash