return (not self:is_virtual() and self:type() == "bridge")
end
-function protocol.opkg_package(self)
+function protocol.package_name(self)
return nil
end
return nixio.fs.access("/lib/netifd/proto/3g.sh")
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "comgt"
end
return p .. "-" .. self.sid
end
- function proto.opkg_package(self)
+ function proto.package_name(self)
if p == "dslite" or p == "ipip6" then
return "ds-lite"
elseif p == "map" then
return p .. "-" .. self.sid
end
- function proto.opkg_package(self)
+ function proto.package_name(self)
return p
end
return nixio.fs.access("/lib/netifd/proto/dhcpv6.sh")
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "odhcp6c"
end
return nixio.fs.access("/lib/netifd/proto/hnet.sh")
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "hnet-full"
end
return "ipip-" .. self.sid
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "ipip"
end
return interface(self:ifname(), self)
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "modemmanager"
end
return luci.i18n.translate("NCM")
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "comgt-ncm"
end
return interface(self:ifname(), self)
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "openconnect"
end
return p .. "-" .. self.sid
end
- function proto.opkg_package(self)
+ function proto.package_name(self)
if p == "ppp" then
return p
elseif p == "pptp" then
return "pppossh-" .. self.sid
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "pppossh"
end
return interface(self:ifname(), self)
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "uqmi"
end
return "relay-" .. self.sid
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "relayd"
end
return interface(self:ifname(), self)
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "vpnc"
end
return interface(self:ifname(), self)
end
-function proto.opkg_package(self)
+function proto.package_name(self)
return "wireguard-tools"
end