]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.device
Remove B.A.T.M.A.N.
[people/ms/network.git] / src / functions / functions.device
index a2cfb9f5ce5e9ad76359c23b1024dd043cb6f9b4..4fc91294162ffe625cc577db2b063f88ce43354e 100644 (file)
@@ -140,31 +140,6 @@ device_get_ifindex() {
        print "$(<${path})"
 }
 
-# Check if the device is a batman-adv bridge
-device_is_batman_adv() {
-       [ -d "${SYS_CLASS_NET}/${1}/mesh" ]
-}
-
-# Check if the device is a batman-adv slave port
-device_is_batman_adv_slave() {
-       local device="${1}"
-
-       if [ -d "${SYS_CLASS_NET}/${device}/batman_adv" ]; then
-               local status="$(<${SYS_CLASS_NET}/${device}/batman_adv/iface_status)"
-
-               case "${status}" in
-                       "active")
-                               return ${EXIT_TRUE}
-                               ;;
-                       *)
-                               return ${EXIT_FALSE}
-                               ;;
-               esac
-       fi
-
-       return ${EXIT_FALSE}
-}
-
 # Check if the device is a bonding device
 device_is_bonding() {
        [ -d "/sys/class/net/${1}/bonding" ]
@@ -386,9 +361,6 @@ device_get_type() {
        elif device_is_ppp ${device}; then
                echo "ppp"
 
-       elif device_is_batman_adv ${device}; then
-               echo "batman-adv"
-
        elif device_is_loopback ${device}; then
                echo "loopback"