Compare commits
2 Commits
4633ff5ea7
...
b59bca727e
| Author | SHA256 | Date | |
|---|---|---|---|
|
b59bca727e
|
|||
|
7bb871e3f7
|
@@ -34,22 +34,32 @@ printf "\e[95m[INFO] Starting : [/usr/lib/live/boot/0042_ciss_post_d
|
|||||||
ciss_debug_countdown=8
|
ciss_debug_countdown=8
|
||||||
while [ "${ciss_debug_countdown}" -gt 0 ]; do
|
while [ "${ciss_debug_countdown}" -gt 0 ]; do
|
||||||
|
|
||||||
printf "\e[93m[DEBUG] 9990() countdown : %s seconds \n\e[0m" "${ciss_debug_countdown}"
|
printf "\e[93m[DEBUG] 0042() countdown : %s seconds \n\e[0m" "${ciss_debug_countdown}"
|
||||||
sleep 1
|
sleep 1
|
||||||
ciss_debug_countdown=$((ciss_debug_countdown - 1))
|
ciss_debug_countdown=$((ciss_debug_countdown - 1))
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
printf "\e[93m[DEBUG] 0042() reached : countdown finished, checking panic availability \n\e[0m"
|
||||||
|
|
||||||
### Check panic command availability -------------------------------------------------------------------------------------------
|
### Check panic command availability -------------------------------------------------------------------------------------------
|
||||||
if ! command -v panic >/dev/null 2>&1; then
|
if ! command -v panic >/dev/null 2>&1; then
|
||||||
|
|
||||||
|
printf "\e[93m[DEBUG] 0042() panic : installing fallback panic() \n\e[0m"
|
||||||
|
|
||||||
panic() {
|
panic() {
|
||||||
printf '\e[91m[FATAL] %s \n\e[0m' "${*}" >&2
|
printf '\e[91m[FATAL] %s \n\e[0m' "${*}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
printf "\e[93m[DEBUG] 0042() panic : existing panic command available \n\e[0m"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
printf "\e[93m[DEBUG] 0042() reached : panic availability check finished \n\e[0m"
|
||||||
|
|
||||||
### Declare variables ----------------------------------------------------------------------------------------------------------
|
### Declare variables ----------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
### Will be replaced at build time:
|
### Will be replaced at build time:
|
||||||
|
|||||||
Reference in New Issue
Block a user