Add Void Linux to system update checking
This commit is contained in:
parent
28452931ad
commit
6b481e598f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue