summaryrefslogtreecommitdiff
path: root/helpers/lh_patchnetwork
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:40 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:40 +0200
commit6f5e2da03e5fd1af2200d2f55ca84647bc8d3626 (patch)
treee2a861c1995eea707b2ac1c72930351191714493 /helpers/lh_patchnetwork
parent9a9491318d4a0469e4c97b28879ab34391c39095 (diff)
downloadlive-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.zip
live-build-6f5e2da03e5fd1af2200d2f55ca84647bc8d3626.tar.gz
Adding live-package 0.99.22-1.
Diffstat (limited to 'helpers/lh_patchnetwork')
-rwxr-xr-xhelpers/lh_patchnetwork18
1 files changed, 18 insertions, 0 deletions
diff --git a/helpers/lh_patchnetwork b/helpers/lh_patchnetwork
new file mode 100755
index 0000000..9d0b4b0
--- /dev/null
+++ b/helpers/lh_patchnetwork
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# lh_patchnetwork.sh <action>
+
+# Packages which are manually installed inside the chroot are installed
+# from the network. Therefore, we need to be able to resolv hosts.
+
+case "${1}" in
+ apply)
+ lh_confignetwork apply-hosts
+ lh_confignetwork apply-resolv
+ ;;
+
+ deapply)
+ lh_confignetwork deapply-hosts
+ lh_confignetwork deapply-resolv
+ ;;
+esac