From 41b19ad67241ad700911d6846c9523534241638e Mon Sep 17 00:00:00 2001 From: Michel Stempin Date: Sun, 25 Oct 2020 21:53:26 +0100 Subject: [PATCH] moved notif and clear_notif in utils Signed-off-by: Michel Stempin --- FunKey/board/funkey/rootfs-overlay/usr/local/lib/utils | 9 +++++++++ .../funkey/rootfs-overlay/usr/local/sbin/first_boot | 9 --------- Recovery/board/funkey/rootfs-overlay/usr/local/lib/utils | 9 +++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/lib/utils b/FunKey/board/funkey/rootfs-overlay/usr/local/lib/utils index 7a68128..a770cca 100755 --- a/FunKey/board/funkey/rootfs-overlay/usr/local/lib/utils +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/lib/utils @@ -18,3 +18,12 @@ if [ $? -ne 0 ]; then exit $return_code } fi + +notif () { + info "$@" + printf "$@" > /sys/class/graphics/fb0/notification +} + +clear_notif () { + printf "clear" > /sys/class/graphics/fb0/notification +} diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot index cc43886..15e025b 100755 --- a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot @@ -18,15 +18,6 @@ elif [ "${root_part_num}" -ne 2 ]; then die 2 "unknown partition layout, aborting" fi -notif () { - info "$@" - printf "$@" > /sys/class/graphics/fb0/notification -} - -clear_notif () { - printf "clear" > /sys/class/graphics/fb0/notification -} - check_swap () { [ -f /swap ] && die 0 "nothing to do" return 0 diff --git a/Recovery/board/funkey/rootfs-overlay/usr/local/lib/utils b/Recovery/board/funkey/rootfs-overlay/usr/local/lib/utils index 7a68128..a770cca 100755 --- a/Recovery/board/funkey/rootfs-overlay/usr/local/lib/utils +++ b/Recovery/board/funkey/rootfs-overlay/usr/local/lib/utils @@ -18,3 +18,12 @@ if [ $? -ne 0 ]; then exit $return_code } fi + +notif () { + info "$@" + printf "$@" > /sys/class/graphics/fb0/notification +} + +clear_notif () { + printf "clear" > /sys/class/graphics/fb0/notification +}