Current File : //sbin/grub2-setpassword
#!/bin/sh -e

EFIDIR=$(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/' -e 's/\"//g')
if [ -d /sys/firmware/efi/efivars/ ]; then
    grubdir=`echo "/boot/efi/EFI/${EFIDIR}/" | sed 's,//*,/,g'`
else
    grubdir=`echo "/boot/grub2" | sed 's,//*,/,g'`
fi

PACKAGE_VERSION="2.03"
PACKAGE_NAME="GRUB"
self=`basename $0`
bindir="/usr/bin"
grub_mkpasswd="${bindir}/grub2-mkpasswd-pbkdf2"

# Usage: usage
# Print the usage.
usage () {
    cat <<EOF
Usage: $0 [OPTION]
$0 prompts the user to set a password on the grub bootloader. The password
is written to a file named user.cfg which lives in the GRUB directory
located by default at ${grubdir}.

  -h, --help                     print this message and exit
  -v, --version                  print the version information and exit
  -o, --output_path <DIRECTORY>  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
    OUTPUT_PATH="${grubdir}"
fi

if [ ! -d "${OUTPUT_PATH}" ]; then
    echo "${OUTPUT_PATH} does not exist."
    usage
    exit 2;
fi

ttyopt=$(stty -g)
fixtty() {
      stty ${ttyopt}
}

trap fixtty EXIT
stty -echo

# prompt & confirm new grub2 root user password
echo -n "Enter password: "
read PASSWORD
echo
echo -n "Confirm password: "
read PASSWORD_CONFIRM
echo
stty ${ttyopt}

getpass() {
    local P0
    local P1
    P0="$1" && shift
    P1="$1" && shift

    ( echo ${P0} ; echo ${P1} ) | \
        LC_ALL=C ${grub_mkpasswd} | \
        grep -v '[eE]nter password:' | \
        sed -e "s/PBKDF2 hash of your password is //"
}

MYPASS="$(getpass "${PASSWORD}" "${PASSWORD_CONFIRM}")"
if [ -z "${MYPASS}" ]; then
      echo "${self}: error: empty password" 1>&2
      exit 1
fi

# on the ESP, these will fail to set the permissions, but it's okay because
# the directory is protected.
install -m 0600 /dev/null "${OUTPUT_PATH}/user.cfg" 2>/dev/null || :
chmod 0600 "${OUTPUT_PATH}/user.cfg" 2>/dev/null || :
echo "GRUB2_PASSWORD=${MYPASS}" > "${OUTPUT_PATH}/user.cfg"

if ! grep -q "^### BEGIN /etc/grub.d/01_users ###$" "${OUTPUT_PATH}/grub.cfg"; then
    echo "WARNING: The current configuration lacks password support!"
    echo "Update your configuration with grub2-mkconfig to support this feature."
fi
Ladies escorts Tryst hook: See separate escorts

Ladies escorts Tryst hook: See separate escorts

Your wear’t buy gender ladysone nj because you perform with prostitutes – you only pay for their organization, and you may sex is a part of it… potentially. Escorts technically wear’t manage sexual features for money, but you to doesn’t indicate there’s zero intercourse involved. This way, you simply need to tick suitable packets to the city, years, ethnicity, or any, and you’ll end up being presented with escorts one match your requirements.

SexJobs | ladysone nj

step 1,749 escorts in the Uruguay available now, 75 knowledge that have whores told through actual clients and you can 89 video clips. Smooci also provides an alive lookup and you will companion booking program having confirmed analysis and you may ratings. Prepaid service feamales in Panama, experience having escorts and you can video from females. The most significant rural intercourse partner search try videkilany.hu.

Ethnicity inside Panadura

Antalya companion website to have professional men who would like to spend time and enjoy yourself having a good companion females. An informed prostitutes away from St. Petersburg within the leases and you will house check outs for your funds. Discover the better girl otherwise son to possess an attractive night of gender or for a love or friendship. We are the brand new all-natural primary inside Query to have sex advertisements.

ladysone nj

Directory of male, women escorts, phone call women, sexy ladies, guys, therapeutic massage parlors, spas, brothels within the Kenya, Tanzania, Uganda. Escort Cyprus • Here you see the biggest listing of an informed gender nightclubs, brothels, she men, escort companies • Sexy high quality companion girls within the Cyprus. NZ escorts, erotic rub and you will mature characteristics index within the The brand new Zealand. Discover sexy professional independent and you will agency escorts from all over The new Zealand.

AdultFriendFinder isn’t a companion webpages by itself, but truth be told there’s an explanation why they’s for the a lot of directories of top escort websites – there are many companion advertisements and you may users. More than two hundred escorts within the Uruguay looking forward to their call. Of VIP companion females, to very naughty young people, so you can veteran prostitutes of delight.

step three,632 advertising to own whores from the Dominican Republic / DR, sex feel which have companion ladies and you will 59 videos out of prepaid women. It turns out that in the event that you have a phone you may have entry to companion functions. Based in which worldwide you’re you might have to continue a great companion webpages depicted by the an agency to engage a female. Unless your min Us , Canada otherwise extremely really earliest industry regions escorts typically try independent.

Slixa – Better Deluxe Companion Supplier

I put in the strive to study and acquire all of the finest escort internet sites in america and global. I just indexed the ones for the higher traffic on the really credible offer. Meanwhile i tossed in a few market escort other sites. Such as to possess specific places, shemales, virgins and also just purely wipe and you will tugs.

ladysone nj

TopEscorteGirls.com of the planet’s preferred label kids, businesses, mature rub parlors, spas, private brothels. The most visited webpages in the France in terms of verified escort woman offers gender ads Monaco and you can nearby. Videkilanyok.hu ‘s the webpages one to collects the most sex partners and you will massage therapy nation girls. All village females and you may rural gender lovers have been in you to place. Denmark’s biggest advertising web site having daily upgraded companion, therapeutic massage and you may sex advertisements. Find the next massage otherwise escort woman easily and quickly.


Publicado

en

por

Etiquetas: