treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / hotplug.d / net / 10-ar922x-led-fix
index 8c57ddc886d095bcea2160e09719927945d0df90..c41d4b08f64c3c20ce376b8045b9bee82f91c50d 100644 (file)
@@ -37,9 +37,9 @@ ar922x_disable_gpio_jtag() {
 }
 
 [ $phyname -a $ACTION = "add" ] && {
-       . /lib/ar71xx.sh
+       . /lib/functions.sh
 
-       case $(ar71xx_board_name) in
+       case $(board_name) in
        wzr-hp-ag300h)
                ar922x_disable_gpio_jtag $phyname
                ;;