0
ˆ
ƒ@wÈ¿Æ g
Index of /FSS-BCZ/root/sys/bus/acpi/devices/QEMU0002:00/physical_node/firmware_node
Index of /FSS-BCZ/root/sys/bus/acpi/devices/QEMU0002:00/physical_node/firmware_node
# ˆl–Ðz¾”ŠC]Šq@ŠãmÜjbÑ¿Å
ƒÀÄÀÇ
ù #!/usr/bin/sh -e
grubdir=`echo "/boot/grub2" | sed 's,//*,/,g'`
PACKAGE_VERSION="2.06"
PACKAGE_NAME="GRUB"
self=`basename $0`
bindir="/usr/bin"
grub_mkpasswd="${bindir}/grub2-mkpasswd-pbkdf2"
# Usage: usage
# Print the usage.
usage () {
cat < put user.cfg in a user-selected directory
Report bugs at https://bugzilla.redhat.com.
EOF
}
argument () {
opt=$1
shift
if test $# -eq 0; then
gettext_printf "%s: option requires an argument -- \`%s'\n" "$self" "$opt" 1>&2
exit 1
fi
echo $1
}
# Ensure that it's the root user running this script
if [ "${EUID}" -ne 0 ]; then
echo "The grub bootloader password may only be set by root."
usage
exit 2
fi
# Check the arguments.
while test $# -gt 0
do
option=$1
shift
case "$option" in
-h | --help)
usage
exit 0 ;;
-v | --version)
echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
exit 0 ;;
-o | --output)
OUTPUT_PATH=`argument $option "$@"`; shift ;;
--output=*)
OUTPUT_PATH=`echo "$option" | sed 's/--output=//'` ;;
-o=*)
OUTPUT_PATH=`echo "$option" | sed 's/-o=//'` ;;
esac
done
# set user input or default path for user.cfg file
if [ -z "${OUTPUT_PATH}" ]; then
OUT