mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
NM detection for Ubuntu 20.10 etc
This commit is contained in:
parent
f65875653a
commit
0e8055d2b3
1 changed files with 4 additions and 2 deletions
|
@ -104,8 +104,10 @@ tmp=$(systemctl is-enabled dhcpcd)
|
|||
DHCPCD=$tmp
|
||||
#[[ $tmp ]] && DHCPCD=$tmp # Short Ain't Sweet (less understandable)
|
||||
|
||||
# Debian family only, as is_redhat would use NetworkManager as the service name
|
||||
tmp=$(systemctl is-enabled network-manager)
|
||||
# is_redhat uses "NetworkManager". Debian 7 & Ubuntu 14.10 required
|
||||
# "network-manager" (prior to 2015/systemd). Ubuntu 20.10 dropped the
|
||||
# legacy symlink from "network-manager" to "NetworkManager"
|
||||
tmp=$(systemctl is-enabled NetworkManager)
|
||||
[[ $tmp != "" ]] &&
|
||||
NETWORK_MANAGER=$tmp
|
||||
|
||||
|
|
Loading…
Reference in a new issue