Selaa lähdekoodia

Login message

Bob Mottram 10 vuotta sitten
vanhempi
commit
b594ff9699
1 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 17
    0
      install-freedombone.sh

+ 17
- 0
install-freedombone.sh Näytä tiedosto

30
   fi
30
   fi
31
 }
31
 }
32
 
32
 
33
+function change_login_message {
34
+  if grep -Fxq "change_login_message" $COMPLETION_FILE; then
35
+	  return
36
+  fi
37
+  echo '' > /etc/motd
38
+  echo ".---.                  .              .                   " >> /etc/motd
39
+  echo "|                      |              |                   " >> /etc/motd
40
+  echo "|--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-. " >> /etc/motd
41
+  echo "|    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-' " >> /etc/motd
42
+  echo "'    '    `--' `--' `-'`- `-' '  '  `-'`-'  `-' '  `- `--'" >> /etc/motd
43
+  echo "" >> /etc/motd
44
+  echo "                    Freedom in the Cloud" >> /etc/motd
45
+  echo "" >> /etc/motd
46
+  echo 'change_login_message' >> $COMPLETION_FILE
47
+}
48
+
33
 function remove_proprietary_repos {
49
 function remove_proprietary_repos {
34
   if grep -Fxq "remove_proprietary_repos" $COMPLETION_FILE; then
50
   if grep -Fxq "remove_proprietary_repos" $COMPLETION_FILE; then
35
 	  return
51
 	  return
831
 remove_proprietary_repos
847
 remove_proprietary_repos
832
 initial_setup
848
 initial_setup
833
 install_editor
849
 install_editor
850
+change_login_message
834
 enable_backports
851
 enable_backports
835
 update_the_kernel
852
 update_the_kernel
836
 enable_zram
853
 enable_zram