[PATCH 6/8] hurd-udeb: configure the network on the target
We drop 51hurd_config-target-network into /usr/lib/finish-install.d, which
copies the passive translator settings from /servers/socket/2 to /target.
---
debian/changelog | 2 ++
debian/hurd-udeb.install | 1 +
.../finish-install.d/51hurd_config-target-network | 8 ++++++++
3 files changed, 11 insertions(+), 0 deletions(-)
create mode 100755 debian/local/finish-install.d/51hurd_config-target-network
diff --git a/debian/changelog b/debian/changelog
index 7289616..9ea8e9d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -98,6 +98,8 @@ hurd (20100802-1) UNRELEASED; urgency=low
* debian/patches/buildsys/*: New patches (build system fixes)
- Make it handle part stores and enable them.
- Improve the CFLAGS situation a bit.
+ * debian/local/finish-install.d/51hurd_config-target-network: copy the
+ /servers/socket/2 translator settings into the target system.
-- Samuel Thibault <sthibault@debian.org> Mon, 02 Aug 2010 10:06:06 +0200
diff --git a/debian/hurd-udeb.install b/debian/hurd-udeb.install
index f80c96c..50dae09 100644
--- a/debian/hurd-udeb.install
+++ b/debian/hurd-udeb.install
@@ -1,6 +1,7 @@
debian/local/runsystem libexec
debian/local/setup-translators usr/lib/hurd
debian/local/partman lib
+debian/local/finish-install.d usr/lib
debian/tmp/lib/*.so.*
debian/tmp/lib/hurd/console/*.so.* usr/lib/hurd/console
debian/tmp/libexec/console-run
diff --git a/debian/local/finish-install.d/51hurd_config-target-network b/debian/local/finish-install.d/51hurd_config-target-network
new file mode 100755
index 0000000..9d78aed
--- /dev/null
+++ b/debian/local/finish-install.d/51hurd_config-target-network
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Make sure the firmlink is gone
+settrans -ag /target/servers
+
+# Transfer the network configuration to /target
+settrans -pk /target/servers/socket/2 $(showtrans /servers/socket/2)
+
--
1.7.1
Reply to: