diff mbox

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

Message ID 1493384212-7911-1-git-send-email-roman@advem.lv
State Changes Requested
Headers show

Commit Message

Roman Yeryomin April 28, 2017, 12:56 p.m. UTC
Signed-off-by: Roman Yeryomin <roman@advem.lv>
---
 package/base-files/files/lib/functions.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox

Patch

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