Merge "Depend on ifupdown in simple-init"
This commit is contained in:
commit
48587b3e93
@ -6,7 +6,9 @@ fi
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ -f /sbin/initctl ]]; then
|
if [[ -f /usr/bin/systemctl ]]; then
|
||||||
|
echo "systemd"
|
||||||
|
elif [[ -f /sbin/initctl ]]; then
|
||||||
echo "upstart"
|
echo "upstart"
|
||||||
elif [[ -f /etc/gentoo-release ]]; then
|
elif [[ -f /etc/gentoo-release ]]; then
|
||||||
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
|
if [[ "${GENTOO_PROFILE}" =~ systemd ]]; then
|
||||||
@ -14,8 +16,6 @@ elif [[ -f /etc/gentoo-release ]]; then
|
|||||||
else
|
else
|
||||||
echo "openrc"
|
echo "openrc"
|
||||||
fi
|
fi
|
||||||
elif [[ -f /usr/bin/systemctl ]]; then
|
|
||||||
echo "systemd"
|
|
||||||
elif [[ -f /sbin/init ]]; then
|
elif [[ -f /sbin/init ]]; then
|
||||||
if [[ -f /bin/systemd ]]; then
|
if [[ -f /bin/systemd ]]; then
|
||||||
echo "systemd"
|
echo "systemd"
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
isc-dhcp-client:
|
isc-dhcp-client:
|
||||||
net-tools:
|
net-tools:
|
||||||
|
ifupdown:
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
"isc-dhcp-client": "dhclient"
|
"isc-dhcp-client": "dhclient"
|
||||||
},
|
},
|
||||||
"debian": {
|
"debian": {
|
||||||
"isc-dhcp-client": "isc-dhcp-client"
|
"isc-dhcp-client": "isc-dhcp-client",
|
||||||
|
"ifupdown": "ifupdown"
|
||||||
},
|
},
|
||||||
"gentoo": {
|
"gentoo": {
|
||||||
"isc-dhcp-client": "net-misc/dhcp",
|
"isc-dhcp-client": "net-misc/dhcp",
|
||||||
@ -13,6 +14,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"default": {
|
"default": {
|
||||||
"isc-dhcp-client": "isc-dhcp-client"
|
"isc-dhcp-client": "isc-dhcp-client",
|
||||||
|
"ifupdown": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user