No need to create a specific _dhcpcd user in this instance.
IPV4LL=
INET6=
PRIVSEP=
-PRIVSEP_USER=_dhcpcd
+PRIVSEP_USER=
ARC4RANDOM=
CLOSEFROM=
RBTREE=
if [ "$PRIVSEP" = yes ]; then
echo "Enabling Priviledge Separation"
+
+ # Try and work out a user
+ if [ -z "$PRIVSEP_USER" ]; then
+ for x in _dhcpcd _dhcp; do
+ if id "$x" 2>/dev/null >&2; then
+ PRIVSEP_USER="$x"
+ break
+ fi
+ done
+ fi
+ : ${PRIVSEP_USER:= _dhcpcd}
+
echo "CPPFLAGS+= -DPRIVSEP" >>$CONFIG_MK
echo "#ifndef PRIVSEP_USER" >>$CONFIG_H
echo "#define PRIVSEP_USER \"$PRIVSEP_USER\"" >>$CONFIG_H