Skip to content

Commit

Permalink
introduce rc.shutdown script check and execution (jens-maus#2452)
Browse files Browse the repository at this point in the history
which can/will be executed at the beginning of the shutdown process in normal-mode and HM-LGW mode.
  • Loading branch information
Baxxy13 authored Sep 27, 2023
1 parent 7786ab5 commit 263d8df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildroot-external/overlay/base/etc/init.d/S99SetupLEDs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ stop() {
if [[ -f "${HM_LED_YELLOW}/trigger" ]]; then
echo "${HM_LED_YELLOW_MODE1}" >"${HM_LED_YELLOW}/trigger"
fi

# call rc.shutdown
if [[ -x /usr/local/etc/rc.shutdown ]]; then
echo -n "rc.shutdown, "
/usr/bin/timeout 120 /usr/local/etc/rc.shutdown
fi

echo "shutdown, OK"
}
Expand Down

0 comments on commit 263d8df

Please sign in to comment.