summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot.func
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-01-31 23:52:30 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-31 23:52:30 +0000
commit28655b2cf027be29af97f2c6d52b3256c66acff1 (patch)
treec70be4589d29eb75493a4614ac2a574ea744bcec /packages/altboot/files/altboot.func
parente66483e9adcb6701bb7a2cdd6625324029d700c9 (diff)
altboot:
- More kernel 2.6 changes - Booting off SD seems to work as expected now - Turn off printk before showing the menu, kernel messages make a mess of it - Load keympas before showing the menu. init=/bin/sh is useless with a b0rked keymapping.
Diffstat (limited to 'packages/altboot/files/altboot.func')
-rw-r--r--packages/altboot/files/altboot.func8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func
index e1196ecc7f..ceee6abae2 100644
--- a/packages/altboot/files/altboot.func
+++ b/packages/altboot/files/altboot.func
@@ -205,14 +205,14 @@ set_password() {
then
crypt_pw="`echo "$junk1" | md5sum | awk '{print $1}'`"
- if test -e /etc/altboot.cfg
+ if test -e "${ALTBOOT_CFG_FILE}"
then
- sed "/^MASTER_PASSWORD/s/\(.*\=\).*/\1\"$crypt_pw\"/" /etc/altboot.cfg > /etc/altboot.cfg_
- mv /etc/altboot.cfg_ /etc/altboot.cfg
+ sed "/^MASTER_PASSWORD/s/\(.*\=\).*/\1\"$crypt_pw\"/" "${ALTBOOT_CFG_FILE}" > ${ALTBOOT_CFG_FILE}_
+ mv ${ALTBOOT_CFG_FILE}_ ${ALTBOOT_CFG_FILE}
MASTER_PASSWORD="$crypt_pw"
echo "Password changed."
else
- echo "/etc/altboot.cfg is missing, no password saved"
+ echo "${ALTBOOT_CFG_FILE} is missing, no password saved"
fi
break