Check for netplan command as well

This commit is contained in:
Jamie Cameron
2020-11-10 11:20:38 -08:00
parent 5eb2d26862
commit b6ad8b0f41

View File

@ -22,7 +22,7 @@ elsif ($gconfig{'os_type'} eq 'slackware-linux' &&
do "$gconfig{'os_type'}-9.1-ALL-lib.pl";
}
elsif ($gconfig{'os_type'} eq 'debian-linux' && -d "/etc/netplan" &&
glob("/etc/netplan/*")) {
&has_command("netplan")) {
# Special case for newer Ubuntu versions
do "netplan-lib.pl";
}