Change motd
This commit is contained in:
parent
5de53bfb2d
commit
9355df9665
|
@ -52,6 +52,7 @@ VARIANT_MAILBOX="mailbox"
|
|||
VARIANT_NONMAILBOX="nonmailbox"
|
||||
VARIANT_SOCIAL="social"
|
||||
VARIANT_MEDIA="media"
|
||||
VARIANT_DEVELOPER="developer"
|
||||
|
||||
DEFAULT_DOMAIN_NAME=
|
||||
DEFAULT_DOMAIN_CODE=
|
||||
|
@ -396,7 +397,7 @@ function show_help {
|
|||
echo '------------'
|
||||
echo 'This can either be blank if you wish to install the full system,'
|
||||
echo "or for more specialised variants you can specify '$VARIANT_MAILBOX', '$VARIANT_CLOUD',"
|
||||
echo "'$VARIANT_CHAT', '$VARIANT_SOCIAL', '$VARIANT_MEDIA' or '$VARIANT_WRITER'."
|
||||
echo "'$VARIANT_CHAT', '$VARIANT_SOCIAL', '$VARIANT_MEDIA', '$VARIANT_WRITER' or '$VARIANT_DEVELOPER'."
|
||||
echo "If you wish to install everything except email then use the '$VARIANT_NONMAILBOX' variaint."
|
||||
echo ''
|
||||
exit 0
|
||||
|
@ -658,7 +659,7 @@ function parse_args {
|
|||
if [ ! $SYSTEM_TYPE ]; then
|
||||
SYSTEM_TYPE=$VARIANT_FULL
|
||||
fi
|
||||
if [[ $SYSTEM_TYPE != $VARIANT_WRITER && $SYSTEM_TYPE != $VARIANT_CLOUD && $SYSTEM_TYPE != $VARIANT_CHAT && $SYSTEM_TYPE != $VARIANT_MAILBOX && $SYSTEM_TYPE != $VARIANT_NONMAILBOX && $SYSTEM_TYPE != $VARIANT_SOCIAL && $SYSTEM_TYPE != $VARIANT_MEDIA && $SYSTEM_TYPE != $VARIANT_FULL ]]; then
|
||||
if [[ $SYSTEM_TYPE != $VARIANT_WRITER && $SYSTEM_TYPE != $VARIANT_CLOUD && $SYSTEM_TYPE != $VARIANT_CHAT && $SYSTEM_TYPE != $VARIANT_MAILBOX && $SYSTEM_TYPE != $VARIANT_NONMAILBOX && $SYSTEM_TYPE != $VARIANT_SOCIAL && $SYSTEM_TYPE != $VARIANT_MEDIA && $SYSTEM_TYPE != $VARIANT_DEVELOPER && $SYSTEM_TYPE != $VARIANT_FULL ]]; then
|
||||
echo "'$SYSTEM_TYPE' is an unrecognised Freedombone variant."
|
||||
exit 30
|
||||
fi
|
||||
|
@ -3877,52 +3878,32 @@ function change_login_message {
|
|||
echo "| | (.-' (.-' ( | ( )| | | | )( )| | (.-' " >> /etc/motd
|
||||
echo "' ' --' --' -' - -' ' ' -' -' -' ' - --'" >> /etc/motd
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_MEDIA" ]]; then
|
||||
echo ' . . . ' >> /etc/motd
|
||||
echo ' |\ /| | o ' >> /etc/motd
|
||||
echo " | \/ | .-. .-.| . .-. " >> /etc/motd
|
||||
echo " | |(.-'( | | ( ) " >> /etc/motd
|
||||
echo " ' ' --' -' --' - -' - " >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_WRITER" ]]; then
|
||||
echo ' . . . . . ' >> /etc/motd
|
||||
echo ' \ \ / / o _|_ ' >> /etc/motd
|
||||
echo ' \ \ /.--.. | .-. .--.' >> /etc/motd
|
||||
echo " \/ \/ | | | (.-' | " >> /etc/motd
|
||||
echo " ' ' ' -' - -' --'' " >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" ]]; then
|
||||
echo ' .--.. . ' >> /etc/motd
|
||||
echo ' : | | ' >> /etc/motd
|
||||
echo ' | | .-. . . .-.| ' >> /etc/motd
|
||||
echo ' : |( )| |( | ' >> /etc/motd
|
||||
echo " --' - -' -- - -' -" >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" ]]; then
|
||||
echo ' .--.. . ' >> /etc/motd
|
||||
echo ' : | _|_ ' >> /etc/motd
|
||||
echo ' | |--. .-. | ' >> /etc/motd
|
||||
echo ' : | |( ) | ' >> /etc/motd
|
||||
echo " --'' - -' - -' " >> /etc/motd
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_MAILBOX" ]]; then
|
||||
echo ' M A I L B O X E D I T I O N' >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_SOCIAL" ]]; then
|
||||
echo ' .-. . ' >> /etc/motd
|
||||
echo ' ( ) o | ' >> /etc/motd
|
||||
echo ' -. .-. .-. . .-. | ' >> /etc/motd
|
||||
echo ' ( )( )( | ( ) | ' >> /etc/motd
|
||||
echo " -' -' -'-' - -' - - " >> /etc/motd
|
||||
echo ' S O C I A L E D I T I O N' >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_MAILBOX" ]]; then
|
||||
echo ' . . . . ' >> /etc/motd
|
||||
echo ' |\ /| o | | ' >> /etc/motd
|
||||
echo ' | \/ | .-. . | |.-. .-.-. ,- ' >> /etc/motd
|
||||
echo ' | |( ) | | | )( ) : ' >> /etc/motd
|
||||
echo " ' ' -' --' - -' -' -'-' - " >> /etc/motd
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_CHAT" ]]; then
|
||||
echo ' C H A T E D I T I O N' >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" ]]; then
|
||||
echo ' C L O U D E D I T I O N' >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_WRITER" ]]; then
|
||||
echo ' W R I T E R E D I T I O N ' >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_MEDIA" ]]; then
|
||||
echo ' M E D I A E D I T I O N' >> /etc/motd
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_DEVELOPER" ]]; then
|
||||
echo ' D E V E L O P E R E D I T I O N' >> /etc/motd
|
||||
fi
|
||||
|
||||
echo '' >> /etc/motd
|
||||
|
|
Loading…
Reference in New Issue