Skip to content

Commit

Permalink
Update allsky-config.sh: Add move_images
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jan 15, 2025
1 parent d506166 commit c744759
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/utilities/allsky-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function usage_and_exit()
echo -e " recheck_swap"
echo -e " recheck_tmp"
echo -e " samba"
echo -e " move_images"
echo -e " new_rpi_camera_info [--camera NUM]"
echo -e " show_start_times [--zero] [angle [latitude [longitude]]]"
echo -e " encoders"
Expand Down Expand Up @@ -172,6 +173,13 @@ function samba()
installSamba.sh
}

#####
# Move ALLSKY_IMAGES to a new location.
function move_images()
{
moveImages.sh
}

#####
# recheck_tmp and recheck_swap are functions defined elsewhere.

Expand Down Expand Up @@ -309,7 +317,7 @@ function prompt()
NUM_OPTIONS=$(( (${#OPTIONS[@]} / 2) + 3 ))

OPT="$( whiptail --title "${TITLE}" --notags --menu "${PROMPT}" \
18 "${WT_WIDTH:-80}" "${NUM_OPTIONS}" -- "${OPTIONS[@]}" 3>&1 1>&2 2>&3 )"
$((NUM_OPTIONS + 10)) "${WT_WIDTH:-80}" "${NUM_OPTIONS}" -- "${OPTIONS[@]}" 3>&1 1>&2 2>&3 )"
RET=$?
if [[ ${RET} -eq 255 ]]; then
echo -e "\n${RED}${ME}: whiptail failed.${NC}" >&2
Expand All @@ -334,6 +342,7 @@ if [[ -z ${CMD} ]]; then
CMDS+=("recheck_swap" "${N}. Add swap space"); ((N++))
CMDS+=("recheck_tmp" "${N}. Move ~/allsky/tmp to memory"); ((N++))
CMDS+=("samba" "${N}. Simplify copying files to/from the Pi"); ((N++))
CMDS+=("move_images" "${N}. Move ~/allsky/images to a different location"); ((N++))
CMDS+=("new_rpi_camera_info" "${N}. Collect information for new RPi camera"); ((N++))
CMDS+=("show_start_times" "${N}. Show daytime and nighttime start times"); ((N++))
CMDS+=("encoders" "${N}. Show list of timelapse encoders available"); ((N++))
Expand Down

0 comments on commit c744759

Please sign in to comment.