treewide: use the generic board_name function
[openwrt/staging/mkresin.git] / target / linux / oxnas / base-files / lib / upgrade / platform.sh
index 48c1dc3f847111b25e50ff4ba848907a6c61b4b1..6652e14f19df8b298bfc5aefcb4a8672152f1954 100644 (file)
@@ -2,13 +2,10 @@
 # Copyright (C) 2014 OpenWrt.org
 #
 
-. /lib/oxnas.sh
-
-RAMFS_COPY_DATA=/lib/oxnas.sh
 REQUIRE_IMAGE_METADATA=1
 
 platform_check_image() {
-       local board=$(oxnas_board_name)
+       local board=$(board_name)
 
        [ "$ARGC" -gt 1 ] && return 1