]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/zones/pppoe
Remove remains of the "real" device type
[people/stevee/network.git] / src / hooks / zones / pppoe
index a72a2a85c034b53402d31ba8bb39b5d7ea783f38..b201ebe7dd19d582044bed11f8ee79e7714a53e7 100644 (file)
@@ -136,7 +136,8 @@ function hook_down() {
 function hook_discover() {
        local device=${1}
 
-       if [ "$(device_get_type ${device})" != "real" ]; then
+       # This obviously only works on ethernet (or compatible) devices
+       if ! device_is_ethernet_compatible "${device}"; then
                exit ${EXIT_ERROR}
        fi