echo "Usage: ${PROG_NAME} [OPTIONS...] [IP ADDRESS]"
echo
echo "Options:"
+ echo " -e change extlinux default menu to test"
echo " -f deploy folder (default is ./rootfs)"
echo " -h display this help and exit"
echo " -r reboot after deploying files"
warnings_opts=""
archive=0
deploydir=${DEPLOYDIR}
+extlinux=0
-while getopts "f:hrwz" flag ;do
+while getopts "ef:hrwz" flag ;do
case ${flag} in
h)
print_usage
exit 0
;;
+ e)
+ extlinux=1
+ ;;
f)
deploydir=${OPTARG}
;;
scp ${archive} root@${EVK_IP}:/tmp
ssh root@${EVK_IP} "cd / && tar -xf /tmp/${archive}"
- # Determine if using extlinux on target:
- ssh -q root@${EVK_IP} [[ -f /boot/extlinux/extlinux.conf ]] && EXTLINUX=1 || EXTLINUX=0;
+ if [ ${extlinux} -eq 1 ]; then
+ # Determine if using extlinux on target:
+ ssh -q root@${EVK_IP} [[ -f /boot/extlinux/extlinux.conf ]] && EXTLINUX=1 || EXTLINUX=0;
- if [ "${EXTLINUX}" = "1" ]; then
- # Switch to test kernel and DTB:
- ssh root@${EVK_IP} "sed -i -e 's@^DEFAULT.*@DEFAULT test@' /boot/extlinux/extlinux.conf"
+ if [ "${EXTLINUX}" = "1" ]; then
+ # Switch to test kernel and DTB:
+ ssh root@${EVK_IP} "sed -i -e 's@^DEFAULT.*@DEFAULT test@' /boot/extlinux/extlinux.conf"
+ fi
fi
if [ x"${reboot}" = x"1" ]; then