1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-18 03:26:14 +02:00

Add network configuration

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-04-27 22:54:28 +02:00
parent 387281fae4
commit e65f40e01f
5 changed files with 12 additions and 0 deletions

View file

@ -45,6 +45,14 @@ deploy() {
ln -s "/share/init/ifrename" "$DEPLOY/etc/init.d/ifrename"
fi
svc=$(file_path_override "interfaces")
if [ ! -z "$svc" ]; then
for svc in $svc/*; do
[ -f "$svc" ] || continue
cp "$svc" "$DEPLOY/etc/netcfg/"
done
fi
for svc in $GETTY_TTY; do
ln -s "/share/init/agetty" "$DEPLOY/etc/init.d/agetty@$svc"
done

View file

@ -0,0 +1 @@
ip 192.168.0.1/24

View file

@ -0,0 +1 @@
ip 192.168.1.1/24

View file

@ -0,0 +1 @@
ip 192.168.2.1/24

View file

@ -0,0 +1 @@
ip 192.168.0.1/24