From e69555668c6cdb951763008624e6e90a63ddbdd6 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sat, 18 Dec 2021 14:38:30 +0800
Subject: [PATCH] add wifi driver fetch in tarball build.sh
---
bsp/rootfs/build.sh | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/bsp/rootfs/build.sh b/bsp/rootfs/build.sh
index 3387fc8..a1b1cc8 100755
--- a/bsp/rootfs/build.sh
+++ b/bsp/rootfs/build.sh
@@ -3,12 +3,12 @@
PRJ_PATH=`pwd`
PRJ_NAME=`basename ${PRJ_PATH}`
-BOARD=imx6ull
+BOARD=igkboard
DRV_PATH=${PRJ_PATH}/driver
TAR_PATH=${PRJ_PATH}/../tarball
-# rootfs should be buildroot/yocto or buster/bullseye for debian system
+# rootfs should be buildroot/yocto or bullseye for debian system
ROOTFS=buildroot
ROOTFS_DIR=rootfs_${ROOTFS}
@@ -68,13 +68,13 @@
# try to decompress packet first.
do_unpack
- if [ $ROOTFS == "buildroot" -o $ROOTFS == "yocto" ] ; then
- if [ ! -d ${ROOTFS_DIR} ] ; then
+ if [ -d ${ROOTFS_DIR} ] ; then
+ return ;
+ else
+ if [ $ROOTFS == "buildroot" -o $ROOTFS == "yocto" ] ; then
echo " ERROR: miss rootfs ${ROOTFS}, exit now. "
echo ""
exit;
- else
- return 0;
fi
fi
@@ -177,7 +177,7 @@
set +e
# update hostnmae and issue
- echo "GNU/Linux $ROOTFS \n \l, default password '$DEF_PASSWD'." > ${ROOTFS_DIR}/etc/issue
+ echo "Welcome to LingYun IoT Gateway Kit Board GNU/Linux $ROOTFS system, default password '$DEF_PASSWD'." > ${ROOTFS_DIR}/etc/issue
echo $DEF_HOSTNAME > ${ROOTFS_DIR}/etc/hostname
grep "$BOARD" ${ROOTFS_DIR}/etc/hosts > /dev/null 2>&1
if [ $? != 0 ] ; then
@@ -188,6 +188,11 @@
echo "nameserver 114.114.114.114" > ${ROOTFS_DIR}/etc/resolv.conf
echo "nameserver 223.5.5.5" >> ${ROOTFS_DIR}/etc/resolv.conf
+ # update profile
+ sed -i "s|PS1='# '|PS1='\\\u@\\\h:\\\w# '|g" ${ROOTFS_DIR}/etc/profile
+ sed -i "s|PS1='$ '|PS1='\\\u@\\\h:\\\w$ '|g" ${ROOTFS_DIR}/etc/profile
+
+
# add ls alias for display with color
grep "color=auto" ${ROOTFS_DIR}/etc/profile > /dev/null 2>&1
if [ $? != 0 ] ; then
--
Gitblit v1.9.1