123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/sh
- # $1 arch
- if [ $1 != "x86_64" ]
- then
- (\
- cat << EOF
- # Configure Loopback
- auto lo
- auto eth0
- auto usb0
- iface lo inet loopback
- #
- #iface eth0 inet dhcp
- iface eth0 inet static
- address 192.168.0.125
- netmask 255.255.0.0
- gateway 192.168.0.1
- post-up echo "nameserver 192.168.0.1" > /etc/resolv.conf
- #
- iface usb0 inet static
- address 192.168.7.2
- netmask 255.255.255.252
- #
- iface wlan0 inet static
- address 192.168.8.2
- broadcast 192.168.8.255
- netmask 255.255.255.0
- #
- EOF
- ) > /etc/network/interfaces
- ifdown eth0
- ifup eth0
- fi
- # --- ini default settings
- (\
- cat << EOF
- [CAM1SETTINGS]
- IpAddress=192.168.0.10
- EOF
- ) > /opt/di-soric/HMI_di-soric.ini
|