mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 23:57:13 +08:00
19 lines
627 B
Plaintext
19 lines
627 B
Plaintext
# arg 1: the new package version
|
|
post_install() {
|
|
[ -f var/state/dhcp/dhcpd.leases ] || : >var/state/dhcp/dhcpd.leases
|
|
[ -f var/state/dhcp/dhcpd6.leases ] || : >var/state/dhcp/dhcpd6.leases
|
|
#echo "If dhcpd doesn't start, ensure the ipv6 kernel module is loaded."
|
|
|
|
echo
|
|
echo "==> The dhcp server has two service files."
|
|
echo "==> Use 'dhcpd6.service' to use IPv6 dhcp server or"
|
|
echo "==> 'dhcpd4.service' to use IPv4 dhcp server."
|
|
echo "==> Make sure that you enable your service file with systemctl!"
|
|
}
|
|
|
|
# arg 1: the new package version
|
|
# arg 2: the old package version
|
|
post_upgrade() {
|
|
post_install $1
|
|
}
|