mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-24 21:02:46 +01:00
recovery build
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
34
Recovery/board/funkey/rootfs-overlay/lib/lsb/init-functions
Executable file
34
Recovery/board/funkey/rootfs-overlay/lib/lsb/init-functions
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
#set -xv
|
||||
|
||||
if [ x"$THIS" != x ]; then
|
||||
THIS="${THIS}: "
|
||||
fi
|
||||
log_action_msg () {
|
||||
echo "${THIS}${@}." | tee /dev/kmsg
|
||||
}
|
||||
|
||||
log_action_begin_msg () {
|
||||
echo -n "${THIS}${@}: " | tee /dev/kmsg
|
||||
}
|
||||
|
||||
log_action_cont_msg () {
|
||||
echo "${THIS}${@}..." | tee /dev/kmsg
|
||||
}
|
||||
|
||||
log_action_end_msg () {
|
||||
local end
|
||||
if [ -z "${2:-}" ]; then
|
||||
end=""
|
||||
else
|
||||
end=" ($2)"
|
||||
fi
|
||||
|
||||
if [ $1 -eq 0 ]; then
|
||||
echo "${THIS}OK${end}" | tee /dev/kmsg
|
||||
else
|
||||
echo "${THIS}ERROR${end}" | tee /dev/kmsg
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user