Fix the repo missing for Kylin V10 SP2 Server

This commit is contained in:
longpanda 2022-07-26 23:08:40 +08:00
parent a4f5ce2c9e
commit 4100e7a886
1 changed files with 7 additions and 0 deletions

View File

@ -362,6 +362,13 @@ ventoy_get_os_type() {
fi
#Kylin V10 Server
if [ -f /usr/sbin/dhclient ]; then
if $BUSYBOX_PATH/strings /usr/sbin/dhclient | $GREP -i -q -m1 openeuler; then
echo 'openEuler'; return
fi
fi
echo "default"
}