core/dhcpcd/pre-install
Juergen Daubert 9daf5006bb [notify] dhcpcd: update to 9.1.4
Note
----
as of version 9.x dhcpcd requires a dedicated user to run with
the new privsep option. Run the provided pre-install script to
create the new user/group dhcpcd.
2020-07-04 11:38:53 +02:00

7 lines
175 B
Bash

#!/bin/sh
getent group dhcpcd || /usr/sbin/groupadd -r dhcpcd
getent passwd dhcpcd || /usr/sbin/useradd -r -d /var/lib/dhcpcd -s /bin/false dhcpcd
/usr/bin/passwd -l dhcpcd