From da1d6e9f524b827749015341a175e3123f6ee498 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 17 Dec 2021 23:08:39 +0800
Subject: [PATCH] update image and rootfs build shell script

---
 bsp/rootfs/build.sh |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/bsp/rootfs/build.sh b/bsp/rootfs/build.sh
index 3387fc8..33b8c99 100755
--- a/bsp/rootfs/build.sh
+++ b/bsp/rootfs/build.sh
@@ -3,7 +3,7 @@
 PRJ_PATH=`pwd`
 PRJ_NAME=`basename ${PRJ_PATH}`
 
-BOARD=imx6ull
+BOARD=igkboard
 
 DRV_PATH=${PRJ_PATH}/driver
 TAR_PATH=${PRJ_PATH}/../tarball
@@ -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