| | |
| | | fi |
| | | } |
| | | |
| | | function do_common() |
| | | { |
| | | if [ -s ${PATCH_PATH}/expand_rootfs ] ; then |
| | | cp ${PATCH_PATH}/expand_rootfs ${ROOTFS_DIR}/usr/sbin/ |
| | | chmod a+x ${ROOTFS_DIR}/usr/sbin/expand_rootfs |
| | | fi |
| | | } |
| | | |
| | | function do_buildroot() |
| | | { |
| | | if [ $ROOTFS != "buildroot" ] ; then |
| | |
| | | # modify for buildroot rootfs |
| | | do_buildroot |
| | | |
| | | # modify for all rootfs |
| | | do_common |
| | | |
| | | # update hostnmae and 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 |