[LEDE-DEV] [PATCH 2/5] base-files: functions.sh: use board functions from board.sh

Roman Yeryomin leroi.lists at gmail.com
Fri Apr 28 05:56:52 PDT 2017


Signed-off-by: Roman Yeryomin <roman at advem.lv>
---
 package/base-files/files/lib/functions.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index 2b6415a..2aaafcf 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -353,8 +353,6 @@ user_exists() {
 	grep -qs "^${1}:" ${IPKG_INSTROOT}/etc/passwd
 }
 
-board_name() {
-	[ -e /tmp/sysinfo/board_name ] && cat /tmp/sysinfo/board_name || echo "generic"
-}
+. /lib/functions/board.sh
 
 [ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh
-- 
2.7.4




More information about the Lede-dev mailing list