diff options
Diffstat (limited to 'projectroot/lib/systemd/connman-ignore')
-rwxr-xr-x | projectroot/lib/systemd/connman-ignore | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/projectroot/lib/systemd/connman-ignore b/projectroot/lib/systemd/connman-ignore new file mode 100755 index 000000000..fe72c5567 --- /dev/null +++ b/projectroot/lib/systemd/connman-ignore @@ -0,0 +1,15 @@ +#!/bin/sh +CONNMAN_IGNORE_OPTS="" +for IF in $(ls /sys/class/net); do + IF_FLAGS="$(cat /sys/class/net/$IF/flags)" + if [ "$((IF_FLAGS&1))" = "1" -a "$IF" != "lo" ]; then + if [ -z "$CONNMAN_IGNORE_OPTS" ]; then + CONNMAN_IGNORE_OPTS="--nodevice=$IF" + else + CONNMAN_IGNORE_OPTS="$CONNMAN_IGNORE_OPTS,$IF" + fi + fi +done + +echo "CONNMAN_IGNORE_OPTS=\"$CONNMAN_IGNORE_OPTS\"" > /run/connman-ignore + |