summaryrefslogtreecommitdiff
path: root/debian/update-resolv-conf
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-30 07:30:53 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-30 07:30:53 +0200
commite94cf198efec5862a3979bdc47157bd3f33e8244 (patch)
treec29e8b8cc3c75c3ac5bedc467a415d738c578256 /debian/update-resolv-conf
parent1c54daf5d79ed0df33b66a5e91d919fefe11b77a (diff)
preserve order of pushed parameters in update-resolv-conf
Diffstat (limited to 'debian/update-resolv-conf')
-rw-r--r--debian/update-resolv-conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/update-resolv-conf b/debian/update-resolv-conf
index fc2f031..5bebaa4 100644
--- a/debian/update-resolv-conf
+++ b/debian/update-resolv-conf
@@ -30,7 +30,8 @@ case "$script_type" in
up)
NMSRVRS=""
SRCHS=""
- for optionvarname in ${!foreign_option_*} ; do
+ foreign_options=$(printf '%s\n' ${!foreign_option_*} | sort -t _ -k 3 -g)
+ for optionvarname in ${foreign_options} ; do
option="${!optionvarname}"
echo "$option"
split_into_parts $option