summaryrefslogtreecommitdiff
path: root/helpers/lh_patchnetwork
diff options
context:
space:
mode:
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