| | |
| | | echo "nameserver 223.5.5.5" > ${ROOTFS_DIR}/etc/resolv.conf |
| | | echo "nameserver 114.114.114.114" >> ${ROOTFS_DIR}/etc/resolv.conf |
| | | |
| | | # update NTP server |
| | | sed -i "s|^#NTP=.*|NTP=pool.ntp.org|g" ${ROOTFS_DIR}/etc/systemd/timesyncd.conf |
| | | |
| | | set +e |
| | | # add ls alias for display with color |
| | | grep "color=auto" ${ROOTFS_DIR}/etc/profile > /dev/null 2>&1 |
| | |
| | | |
| | | function do_conf() |
| | | { |
| | | EXTRA_APPS="vim net-tools network-manager tree file parted locales lsb-release tzdata wireless-tools openssh-server" |
| | | EXTRA_APPS="vim net-tools network-manager tree file parted locales lsb-release tzdata wireless-tools openssh-server systemd-timesyncd" |
| | | |
| | | pr_warn "\ndebootstrap configure" |
| | | |
| | |
| | | |
| | | function do_pack() |
| | | { |
| | | pr_warn "\npackaget $ROOTFS_DIR" |
| | | pr_warn "\npackage $ROOTFS_DIR" |
| | | |
| | | cd $PRJ_PATH |
| | | tar -cJf $ROOTFS_DIR.tar.xz $ROOTFS_DIR |
| | | cd $PRJ_PATH/$ROOTFS_DIR |
| | | tar -cJf ../$ROOTFS_DIR.tar.xz * |
| | | } |
| | | |
| | | #+-------------------------+ |