blob: 0e63661d8be9e60b4fd2e977ee504c3e75b70f35 [file] [log] [blame]
developer08587352022-08-29 18:59:45 +08001#!/bin/sh
2
3#Setting brlan0 bridge
4if [ ! -d /sys/class/net/brlan0 ]
5then
6 brctl addbr brlan0
7 ip link set brlan0 address `cat /sys/class/net/eth1/address`
8 ifconfig brlan0 10.0.0.1 netmask 255.255.255.0 up
9fi
10
11#Work around for Ethernet connected clients
12if [ ! -d /sys/class/net/lan0 ]
13then
14brctl addif brlan0 eth1
15else
16brctl addif brlan0 lan0
17brctl addif brlan0 lan1
18brctl addif brlan0 lan2
19brctl addif brlan0 lan3
20brctl addif brlan0 lan4
developer975997b2022-10-24 16:43:53 +080021brctl addif brlan0 lan5
developer08587352022-08-29 18:59:45 +080022
23ifconfig lan0 up
24ifconfig lan1 up
25ifconfig lan2 up
26ifconfig lan3 up
27ifconfig lan4 up
developer975997b2022-10-24 16:43:53 +080028ifconfig lan5 up
developer08587352022-08-29 18:59:45 +080029fi
30ifconfig eth1 up
31
32
33#workaround: creating /opt/secure folder for ssh service
34if [ ! -d /opt/secure ]; then
35 mkdir /opt/secure
36fi