diff options
Diffstat (limited to 'scripts/build/chroot_hostname')
-rwxr-xr-x | scripts/build/chroot_hostname | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/chroot_hostname b/scripts/build/chroot_hostname index 4509591f0..eb2fd02e5 100755 --- a/scripts/build/chroot_hostname +++ b/scripts/build/chroot_hostname @@ -18,13 +18,16 @@ set -e DESCRIPTION="Manage /bin/hostname" USAGE="${PROGRAM} {install|remove} [--force]" +_ACTION="${1}" +shift + # Processing arguments and configuration files Init_config_data "${@}" # Requiring stage file Require_stagefiles config bootstrap -case "${1}" in +case "${_ACTION}" in install) # Checking stage file Check_stagefile @@ -80,6 +83,7 @@ EOF ;; *) + Echo_error "Invalid action parameter: '${_ACTION}'" Usage --fail ;; esac |