Developing lightweight computation at the DSG edge

Commit 5e4a5ce9 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] RouterStation Pro is treated as any other device (no...

[qmp-system] RouterStation Pro is treated as any other device (no target-specific hook in the middle of the code)
parent 22114469
...@@ -324,7 +324,7 @@ qmp_attach_device_to_interface() { ...@@ -324,7 +324,7 @@ qmp_attach_device_to_interface() {
} }
qmp_is_routerstationpro() { qmp_is_routerstationpro() {
cat /proc/cpuinfo | grep -q "^machine[[:space:]]*: Ubiquiti RouterStation Pro$" cat /proc/cpuinfo | grep -q "^machine[[:space:]]*: No Ubiquiti RouterStation Pro at all$"
} }
qmp_configure_routerstationpro_switch() { qmp_configure_routerstationpro_switch() {
...@@ -822,7 +822,7 @@ fi ...@@ -822,7 +822,7 @@ fi
if [ $use_vlan -eq 1 ]; then if [ $use_vlan -eq 1 ]; then
local viface="$(qmp_get_virtual_iface $dev)" local viface="$(qmp_get_virtual_iface $dev)"
local ifname="${viface}_${vid}" local ifname="${viface}_${vid}"
# If not vlan tagging # If not vlan tagging
else else
local ifname="$dev" local ifname="$dev"
...@@ -908,4 +908,3 @@ qmp_configure() { ...@@ -908,4 +908,3 @@ qmp_configure() {
qmp_configure_lan_v6 qmp_configure_lan_v6
qmp_hooks_exec postconf qmp_hooks_exec postconf
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment