aboutsummaryrefslogtreecommitdiff
path: root/rootfs/etc/ifplugd/ifplugd.action
blob: e0e59eff68ef858f6391ae2aede029539f763a93 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e
INTERFACE="$1"
NEW_STATE="$2"

test -n "$INTERFACE"
test -n "$NEW_STATE"

[ "$NEW_STATE" = "up" ] && exec ifup "$INTERFACE"
[ "$NEW_STATE" = "down" ] && exec ifdown "$INTERFACE"