mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-05 19:40:52 -07:00
20 lines
277 B
Bash
Executable file
20 lines
277 B
Bash
Executable file
#! /bin/sh /etc/rc.common
|
|
|
|
START=41
|
|
STOP=89
|
|
|
|
VLANS=48
|
|
|
|
start () {
|
|
for i in $(seq 1 $VLANS); do
|
|
vconfig add eth0 $i
|
|
ifconfig eth0.$i 10.$i.0.1 netmask 255.255.0.0
|
|
done
|
|
}
|
|
|
|
stop () {
|
|
for i in $(seq 1 $VLANS); do
|
|
vconfig rem eth0.$i
|
|
done
|
|
}
|
|
|