summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinst10
1 files changed, 5 insertions, 5 deletions
diff --git a/inst b/inst
index 9e01655..6189752 100755
--- a/inst
+++ b/inst
@@ -462,7 +462,7 @@ usage()
main()
{
- local host_files_pfx=
+ local host_dir=
local log=
exec 3>&1
@@ -472,15 +472,15 @@ main()
return 1
fi
host="${1}"
- host_files_pfx="$(dirname "${0}")/hosts/${host}"
- if ! [ -r "${host_files_pfx}" ]; then
+ host_dir="$(dirname "${0}")/hosts/${host}"
+ if ! [ -d "${host_dir}" ]; then
err '%s: Unknown host' "${host}"
return 1
fi
dev="${2}"
- . "${host_files_pfx}"
- postinst_pkgs="$(sed 's/#.*$//;' "${host_files_pfx}.pkgs")"
+ . "${host_dir}/conf"
+ postinst_pkgs="$(sed 's/#.*$//;' "${host_dir}/pkgs")"
log="$(mktemp)"
exec 4>"${log}"