moved notif and clear_notif in utils

Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
This commit is contained in:
Michel Stempin 2020-10-25 21:53:26 +01:00
parent 0c03bdfca0
commit 41b19ad672
3 changed files with 18 additions and 9 deletions

View File

@ -18,3 +18,12 @@ if [ $? -ne 0 ]; then
exit $return_code exit $return_code
} }
fi fi
notif () {
info "$@"
printf "$@" > /sys/class/graphics/fb0/notification
}
clear_notif () {
printf "clear" > /sys/class/graphics/fb0/notification
}

View File

@ -18,15 +18,6 @@ elif [ "${root_part_num}" -ne 2 ]; then
die 2 "unknown partition layout, aborting" die 2 "unknown partition layout, aborting"
fi fi
notif () {
info "$@"
printf "$@" > /sys/class/graphics/fb0/notification
}
clear_notif () {
printf "clear" > /sys/class/graphics/fb0/notification
}
check_swap () { check_swap () {
[ -f /swap ] && die 0 "nothing to do" [ -f /swap ] && die 0 "nothing to do"
return 0 return 0

View File

@ -18,3 +18,12 @@ if [ $? -ne 0 ]; then
exit $return_code exit $return_code
} }
fi fi
notif () {
info "$@"
printf "$@" > /sys/class/graphics/fb0/notification
}
clear_notif () {
printf "clear" > /sys/class/graphics/fb0/notification
}