add function for PN51 (#2051)
This commit is contained in:
Родитель
83d9d8497a
Коммит
0b69e5ed56
9
lib.sh
9
lib.sh
|
@ -1696,6 +1696,15 @@ else
|
|||
fi
|
||||
}
|
||||
|
||||
asuspn51() {
|
||||
if lshw -c system | grep -q "PN51"
|
||||
then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Check if the value is a number
|
||||
# EXAMPLE: https://github.com/nextcloud/vm/pull/1012
|
||||
check_if_number() {
|
||||
|
|
|
@ -17,8 +17,8 @@ debug_mode
|
|||
# Check if root
|
||||
root_check
|
||||
|
||||
# Only intended for our NUCs
|
||||
if ! home_sme_server
|
||||
# Only intended for the ASUS PN51 NUC
|
||||
if ! asuspn51
|
||||
then
|
||||
exit
|
||||
fi
|
||||
|
|
|
@ -534,7 +534,7 @@ mesg n
|
|||
ROOTNEWPROFILE
|
||||
|
||||
# Avoid kernel updates due to the network driver
|
||||
if ! home_sme_server
|
||||
if ! asuspn51
|
||||
then
|
||||
# Upgrade system
|
||||
print_text_in_color "$ICyan" "System will now upgrade..."
|
||||
|
|
Загрузка…
Ссылка в новой задаче