ffhh-packages/gluon-config-mode/files/lib/gluon/upgrade/config-mode/invariant/010-config-ifname
2014-06-26 19:33:31 +02:00

18 lines
334 B
Bash
Executable file

#!/bin/sh
. /lib/gluon/functions/sysconfig.sh
. /lib/ar71xx.sh
sysconfig_isset config_ifname && exit 0
case "$(ar71xx_board_name)" in
nanostation-m)
sysconfig_set config_ifname "$(sysconfig wan_ifname || sysconfig lan_ifname)"
;;
*)
sysconfig_set config_ifname "$(sysconfig lan_ifname || sysconfig wan_ifname)"
;;
esac