summaryrefslogtreecommitdiff
path: root/polux/package/initramfs
diff options
context:
space:
mode:
authorOlivier Dufour2013-04-16 15:19:35 +0200
committerOlivier Dufour2013-04-17 12:57:47 +0200
commitc8af4e7772611f9f5cb6a7401dcde42e89b06d01 (patch)
tree1c3dd0ae38f9cf596233338801d6deeae6f0d34f /polux/package/initramfs
parent82717238d144b1987fa386221fe12df49c42a14a (diff)
polux/package/initramfs: fix bridge script to support eth2, closes #3937
Since 0f57407d245d93d25da94a6299ac2230724c9531 the script doesn't work on spc200c, as the proc directory had a different name.
Diffstat (limited to 'polux/package/initramfs')
-rw-r--r--polux/package/initramfs/root/etc/init.d/bridge3
1 files changed, 2 insertions, 1 deletions
diff --git a/polux/package/initramfs/root/etc/init.d/bridge b/polux/package/initramfs/root/etc/init.d/bridge
index 9886c18da4..ddab5471a2 100644
--- a/polux/package/initramfs/root/etc/init.d/bridge
+++ b/polux/package/initramfs/root/etc/init.d/bridge
@@ -9,7 +9,8 @@ case "$1" in
# Check that bridge service is up.
grep " *BRIDGING *= *no" /etc/config/network && exit 0
[ -d /proc/net/plc ] || exit 0
- [ -d /proc/net/eth0 ] || exit 0
+ # proc directory is different on spc200 and mse500
+ [ -d /proc/net/eth ] || [ -d /proc/net/eth0 ] || exit 0
if [ "$EXIST" = "0" ]
then