diff options
Diffstat (limited to 'debian/update-resolv-conf')
-rw-r--r-- | debian/update-resolv-conf | 3 |
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 |