Add Void Linux to system update checking

This commit is contained in:
lhark 2017-09-09 01:58:50 -04:00
parent 28452931ad
commit 6b481e598f

View file

@ -268,11 +268,13 @@ check_rc_update () {
} }
check_sys_update () { check_sys_update () {
case $(lsb_release -a | awk -F ':\t' '/Distributor ID/{print $2}') in case $(lsb_release -i | awk -F ':\t' '/Distributor ID/{print $2}') in
Arch) Arch)
nb_maj=$(checkupdates | wc -l);; nb_maj=$(checkupdates | wc -l);;
Debian|Ubuntu) Debian|Ubuntu)
nb_maj=$(aptitude search '~U' | wc -l);; nb_maj=$(aptitude search '~U' | wc -l);;
VoidLinux)
nb_maj=$(xbps-install -Sun | wc -l);;
esac esac
if [ $nb_maj -gt 0 ]; then if [ $nb_maj -gt 0 ]; then
echo "update_sys $nb_maj" >> /dev/shm/prompt_msg echo "update_sys $nb_maj" >> /dev/shm/prompt_msg