summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
diff options
context:
space:
mode:
authorSamuel Thibault <samy@hurd.youpi.perso.aquilenet.fr>2012-05-20 13:41:11 +0000
committerSamuel Thibault <samy@hurd.youpi.perso.aquilenet.fr>2012-05-20 13:41:52 +0000
commit10053fe88aee4c2775506876067c5a52706e0771 (patch)
treedb80ce1910fedcb62072a75383136046039c72f7 /debian/hurd.postinst
parentf6732428ca9cd9df3b92bea87cb4253afda866f6 (diff)
Enable netdde by default
* control: Depend on netdde, recent enough (>= 0.0.20120518~) to avoid conflicts with gnumach drivers. * local/setup-translators: Setup netdde translator and /dev/eth*. * debian/hurd.postinst: Migrate pfinet into using /dev/eth0.
Diffstat (limited to 'debian/hurd.postinst')
-rw-r--r--debian/hurd.postinst14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
index 4a552ddf..a8a5c087 100644
--- a/debian/hurd.postinst
+++ b/debian/hurd.postinst
@@ -75,6 +75,20 @@ if [ "$1" = configure ] && [ "$2" ]; then
( cd /dev ; rm -f random urandom )
fi
/usr/lib/hurd/setup-translators -K
+
+ # upgrade pfinet into using DDE node
+ if PFINET="`showtrans /servers/socket/2`"
+ then
+ PFINET=$(echo "$PFINET" | sed 's_ eth_ /dev/eth_')
+ PFINET=$(echo "$PFINET" | sed 's_=eth_=/dev/eth_')
+ settrans -pk /servers/socket/2 $PFINET
+ fi
+ if PFINET6=`showtrans /servers/socket/26`
+ then
+ PFINET6=$(echo "$PFINET6" | sed 's_ eth_ /dev/eth_')
+ PFINET6=$(echo "$PFINET6" | sed 's_=eth_=/dev/eth_')
+ settrans -pk /servers/socket/26 $PFINET6
+ fi
fi
update-alternatives --install /hurd/random.sh random.sh /hurd/random-hurd.sh 10 \