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 | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/bsp/rootfs/build.sh b/bsp/rootfs/build.sh index 3adcd33..33b8c99 100755 --- a/bsp/rootfs/build.sh +++ b/bsp/rootfs/build.sh @@ -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