-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.cfg
44 lines (40 loc) · 784 Bytes
/
debug.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export VDSLUP=/var/tmp/vdslup.sh
export VDSLDOWN=/var/tmp/vdsldown.sh
cat > $VDSLUP <<'EOF'
#!/bin/sh
export VDSLDOWN=/var/tmp/vdsldown.sh
export VDSLDUP=/var/tmp/vdslup.sh
ifconfig ptm_vr9
E=$?
while [ "$E" -gt 0 ]; do
sleep 20;
ifconfig ptm_vr9
E=$?
done
brctl delif lan eth0
brctl addbr vpppoe
brctl addif vpppoe eth0
brctl addif vpppoe ptm_vr9
ifconfig vpppoe up
ifconfig eth0 up
ifconfig ptm_vr9 up
killall dsld telefon voipd pbd
echo "starting $VDSLDOWN"
$VDSLDOWN &
EOF
cat > $VDSLDOWN <<'EOF'
#!/bin/sh
export VDSLDOWN=/var/tmp/vdsldown.sh
export VDSLDUP=/var/tmp/vdslup.sh
ifconfig ptm_vr9
E=$?
while [ "$E" -eq 0 ]; do
sleep 60;
ifconfig ptm_vr9
E=$?
done
. $VDSLUP &
EOF
chmod +x $VDSLUP
chmod +x $VDSLDOWN
. $VDSLUP &