14 lines
290 B
Bash
Executable File
14 lines
290 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ "$1" = configure ]; then
|
|
# Create system user for privilege separation.
|
|
if ! getent passwd dhcpcd >/dev/null; then
|
|
adduser --system \
|
|
--gecos "DHCP Client Daemon" \
|
|
--home /usr/lib/dhcpcd --no-create-home \
|
|
--shell /bin/false \
|
|
dhcpcd
|
|
fi
|
|
fi
|
|
|