mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
core144: add dhcpcd initskript and user
this commit also re/create the user after backup restore. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -79,6 +79,14 @@ restore_backup() {
|
||||
# remove wrong vnstat tag file
|
||||
rm -f /var/log/vnstat/tag
|
||||
|
||||
# create dhcpcd user
|
||||
groupadd -g 52 dhcpcd
|
||||
useradd -c 'dhcpcd privsep user' \
|
||||
-d /run/dhcpcd/chroot \
|
||||
-g dhcpcd \
|
||||
-s /bin/false \
|
||||
-u 52 dhcpcd
|
||||
|
||||
# Run converters
|
||||
|
||||
# Outgoing Firewall
|
||||
|
||||
@@ -2,3 +2,6 @@ etc/system-release
|
||||
etc/issue
|
||||
srv/web/ipfire/cgi-bin/credits.cgi
|
||||
var/ipfire/langs
|
||||
etc/rc.d/init.d/mountkernfs
|
||||
etc/rc.d/init.d/networking/functions.network
|
||||
etc/rc.d/init.d/networking/red
|
||||
|
||||
@@ -56,6 +56,14 @@ ldconfig
|
||||
|
||||
# Start services
|
||||
|
||||
# create dhcpcd user
|
||||
groupadd -g 52 dhcpcd
|
||||
useradd -c 'dhcpcd privsep user' \
|
||||
-d /run/dhcpcd/chroot \
|
||||
-g dhcpcd \
|
||||
-s /bin/false \
|
||||
-u 52 dhcpcd
|
||||
|
||||
# Update Language cache
|
||||
/usr/local/bin/update-lang-cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user