build-set-remotenp

build_set_remotenp
code format="bash"
 * 1) !/bin/bash

export CR=`ls -ld /var/ipqp/CR* | cut -d"/" -f4`

prefix=/usr exec_prefix=/usr sbindir=/sbin
 * 1) Replaced by the configure script.

grub_shell=${sbindir}/grub progname="grub-md5-crypt"
 * 1) Initialize some variables.

stty -echo
 * 1) Suppress echo backs. I don't know if this is really portable. -okuji

echo -n "Password: " read -r pass echo
 * 1) Prompt to enter a password.

echo -n "Retype password: " read -r pass2 echo
 * 1) One more time.

stty echo
 * 1) Resume echo backs.

if test "x$pass" = x; then echo "Empty password is not permitted." exit 1 fi

if test "x$pass" != "x$pass2"; then echo "Sorry, passwords do not match." exit 1 fi

HASH="$($grub_shell --batch --device-map=/dev/null < password..."
 * 1) Now that grub.conf is updated, let's reset the  password to match

expect << EOF spawn passwd  expect "ssword: " send "${pass}\r" expect "ssword: " send "${pass}\r" expect eof; EOF

code