12 lines
232 B
Bash
Executable File
12 lines
232 B
Bash
Executable File
#!/bin/sh -e
|
|
cat << EOF
|
|
if [ -f \${prefix}/user.cfg ]; then
|
|
source \${prefix}/user.cfg
|
|
if [ -n "\${GRUB2_PASSWORD}" ]; then
|
|
set superusers="root"
|
|
export superusers
|
|
password_pbkdf2 root \${GRUB2_PASSWORD}
|
|
fi
|
|
fi
|
|
EOF
|