Formatting
This commit is contained in:
parent
02e104b395
commit
1d67c5f1fa
@ -123,10 +123,11 @@ dialog --backtitle "pam_panic's Configuration Generator" \
|
|||||||
--ok-label "Yip!" \
|
--ok-label "Yip!" \
|
||||||
--msgbox "Welcome to pam_panic's Configuration Generator.\n\nIt will help you to create a valid pam_panic setup. It will also generate a Linux' PAM configuration file.\n\nAfter you're done with this Configuration Generator, you will see some hints how to integrate the new PAM configuration file in your system." 20 80
|
--msgbox "Welcome to pam_panic's Configuration Generator.\n\nIt will help you to create a valid pam_panic setup. It will also generate a Linux' PAM configuration file.\n\nAfter you're done with this Configuration Generator, you will see some hints how to integrate the new PAM configuration file in your system." 20 80
|
||||||
|
|
||||||
|
|
||||||
|
# Authentication mode
|
||||||
auth_mode=2
|
auth_mode=2
|
||||||
while [ $auth_mode -eq 2 ]; do
|
while [ $auth_mode -eq 2 ]; do
|
||||||
|
|
||||||
# Authentication mode
|
|
||||||
dialog --backtitle "pam_panic's Configuration Generator" \
|
dialog --backtitle "pam_panic's Configuration Generator" \
|
||||||
--title "Authentication mode" \
|
--title "Authentication mode" \
|
||||||
--help-button \
|
--help-button \
|
||||||
@ -190,6 +191,7 @@ while [ $auth_mode -eq 2 ]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# serious flag
|
# serious flag
|
||||||
ask "pam_panic's behaviour" "Do you wish to destroy your LUKS header in case of emergency?\nThis means that your encrypted root device won't be readable anymore. After this question you will be asked to make a backup of this header."
|
ask "pam_panic's behaviour" "Do you wish to destroy your LUKS header in case of emergency?\nThis means that your encrypted root device won't be readable anymore. After this question you will be asked to make a backup of this header."
|
||||||
serious=$?
|
serious=$?
|
||||||
@ -214,6 +216,7 @@ if [ $serious -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# poweroff / reboot behaviour
|
# poweroff / reboot behaviour
|
||||||
dialog --backtitle "pam_panic's Configuration Generator" \
|
dialog --backtitle "pam_panic's Configuration Generator" \
|
||||||
--title "pam_panic's behaviour" \
|
--title "pam_panic's behaviour" \
|
||||||
@ -269,6 +272,7 @@ else
|
|||||||
echo -e "$config" > $CONFIGFILE
|
echo -e "$config" > $CONFIGFILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Finished message
|
# Finished message
|
||||||
clear
|
clear
|
||||||
[ $ov -eq 0 ] && echo "Done! <3" || echo "Nothing done! </3"
|
[ $ov -eq 0 ] && echo "Done! <3" || echo "Nothing done! </3"
|
||||||
|
Loading…
Reference in New Issue
Block a user