aboutsummaryrefslogtreecommitdiffstats
path: root/dhcpcd-run-hooks
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:20 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:20 -0800
commitd97c47cad830d00c9da685cc4ea157d6185f6c97 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /dhcpcd-run-hooks
parent4c5a5fb53bccceff331bae70f748bf9b4609fe0a (diff)
downloadexternal_dhcpcd-d97c47cad830d00c9da685cc4ea157d6185f6c97.zip
external_dhcpcd-d97c47cad830d00c9da685cc4ea157d6185f6c97.tar.gz
external_dhcpcd-d97c47cad830d00c9da685cc4ea157d6185f6c97.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'dhcpcd-run-hooks')
-rwxr-xr-xdhcpcd-run-hooks31
1 files changed, 0 insertions, 31 deletions
diff --git a/dhcpcd-run-hooks b/dhcpcd-run-hooks
deleted file mode 100755
index db9c4f8..0000000
--- a/dhcpcd-run-hooks
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/system/bin/sh
-# dhcpcd client configuration script
-
-# Handy variables and functions for our hooks to use
-from="from"
-signature_base="# Generated by dhcpcd"
-signature="${signature_base} ${from} ${interface}"
-signature_base_end="# End of dhcpcd"
-signature_end="${signature_base_end} ${from} ${interface}"
-state_dir="/data/misc/dhcpcd"
-
-# We source each script into this one so that scripts run earlier can
-# remove variables from the environment so later scripts don't see them.
-# Thus, the user can create their dhcpcd.enter/exit-hook script to configure
-# /etc/resolv.conf how they want and stop the system scripts ever updating it.
-for hook in \
- /system/etc/dhcpcd/dhcpcd.enter-hook \
- /system/etc/dhcpcd/dhcpcd-hooks/* \
- /system/etc/dhcpcd/dhcpcd.exit-hook
-do
- for skip in ${skip_hooks}; do
- case "${hook}" in
- "${skip}") continue 2;;
- */[0-9][0-9]"-${skip}") continue 2;;
- */[0-9][0-9]"-${skip}.sh") continue 2;;
- esac
- done
- if ls "${hook}" >/dev/null 2>&1; then
- . "${hook}"
- fi
-done