Skip to content

Commit 5ec1bde

Browse files
committed
conf/p0soc: update eth script,add empty copyfiles.txt file.
Signed-off-by: guibing <guibing@nucleisys.com>
1 parent 7015651 commit 5ec1bde

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

conf/p0soc/S03net

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,31 @@
44
ls /sys/class/net/eth0 2>1 > /dev/null
55
haseth0=$?
66

7+
ls /sys/class/net/eth1 2>1 > /dev/null
8+
haseth1=$?
9+
710
start() {
11+
ifconfig lo up &
812
if [[ $haseth0 == 0 ]] then
913
echo "Configure eth0!"
10-
ifconfig lo up &
11-
udhcpc &
12-
else
13-
echo "eth0 device not present, will not configure it!"
14+
#udhcpc -i eth0 -b -R -o -O 1 -O 6 -O 15 &
15+
udhcpc -i eth0 -b -R &
16+
fi
17+
if [[ $haseth1 == 0 ]] then
18+
echo "Configure eth1!"
19+
udhcpc -i eth1 -b -R &
1420
fi
1521
}
1622

1723
stop() {
24+
ifconfig lo down &
1825
if [[ $haseth0 == 0 ]] then
19-
echo "eth0 & lo network down!"
20-
ifconfig lo down &
26+
echo "eth0 down!"
2127
ifconfig eth0 down &
22-
else
23-
echo "eth0 device not present, will not configure it!"
28+
fi
29+
if [[ $haseth1 == 0 ]] then
30+
echo "eth1 down!"
31+
ifconfig eth1 down &
2432
fi
2533
}
2634

conf/p0soc/copyfiles.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)