moved notif and clear_notif in utils
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
This commit is contained in:
parent
0c03bdfca0
commit
41b19ad672
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue