2 # Unloads/loads all interface that are up at time of suspend
4 if [ "$1" = suspend ]; then
5 rm -f /var/run/ifstate-suspend
6 rm -f /var/run/ifstate-old
7 cp /var/run/ifstate /var/run/ifstate-old
8 cat /var/run/ifstate-old | (
10 while read IFACE LOGICAL; do
12 echo "$IFACE=$LOGICAL" >>/var/run/ifstate-suspend
14 rm -f /var/run/ifstate-old
16 elif [ "$1" = resume ] && [ "$2" != standby ] && [ -f /var/run/ifstate-suspend ]; then
17 cat /var/run/ifstate-suspend | (
22 rm -f /var/run/ifstate-suspend