mirror of
https://github.com/pygos/build.git
synced 2024-11-25 04:20:41 +01:00
Add network configuration
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
387281fae4
commit
e65f40e01f
5 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
1
product/router/interfaces.alix/port0
Normal file
1
product/router/interfaces.alix/port0
Normal file
|
@ -0,0 +1 @@
|
|||
ip 192.168.0.1/24
|
1
product/router/interfaces.alix/port1
Normal file
1
product/router/interfaces.alix/port1
Normal file
|
@ -0,0 +1 @@
|
|||
ip 192.168.1.1/24
|
1
product/router/interfaces.alix/port2
Normal file
1
product/router/interfaces.alix/port2
Normal file
|
@ -0,0 +1 @@
|
|||
ip 192.168.2.1/24
|
1
product/router/interfaces.rpi3/port0
Normal file
1
product/router/interfaces.rpi3/port0
Normal file
|
@ -0,0 +1 @@
|
|||
ip 192.168.0.1/24
|
Loading…
Reference in a new issue