summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_selinuxfs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_selinuxfs')
-rwxr-xr-xscripts/build/chroot_selinuxfs6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/chroot_selinuxfs b/scripts/build/chroot_selinuxfs
index ac6b8b695..cb19b5846 100755
--- a/scripts/build/chroot_selinuxfs
+++ b/scripts/build/chroot_selinuxfs
@@ -18,6 +18,9 @@ set -e
DESCRIPTION="Mount /sys/fs/selinux"
USAGE="${PROGRAM} {install|remove} [--force]"
+_ACTION="${1}"
+shift
+
# Processing arguments and configuration files
Init_config_data "${@}"
@@ -31,7 +34,7 @@ then
exit 0
fi
-case "${1}" in
+case "${_ACTION}" in
install)
Echo_message "Begin mounting /sys/fs/selinux..."
@@ -71,6 +74,7 @@ case "${1}" in
;;
*)
+ Echo_error "Invalid action parameter: '${_ACTION}'"
Usage --fail
;;
esac