Ver código fonte

Remove automatic motd creator if it exists

Bob Mottram 9 anos atrás
pai
commit
195735cc51
2 arquivos alterados com 11 adições e 0 exclusões
  1. 6
    0
      src/freedombone
  2. 5
    0
      src/freedombone-prep

+ 6
- 0
src/freedombone Ver arquivo

@@ -5166,6 +5166,12 @@ function change_login_message {
5166 5166
   if grep -Fxq "change_login_message" $COMPLETION_FILE; then
5167 5167
       return
5168 5168
   fi
5169
+
5170
+  # remove automatic motd creator if it exists
5171
+  if [ -f /etc/init.d/motd ]; then
5172
+      rm -f /etc/init.d/motd
5173
+  fi
5174
+
5169 5175
   echo '' > /etc/motd
5170 5176
   echo ".---.                  .              .                   " >> /etc/motd
5171 5177
   echo "|                      |              |                   " >> /etc/motd

+ 5
- 0
src/freedombone-prep Ver arquivo

@@ -251,6 +251,11 @@ if [ ! -f $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/freedombone ]; then
251 251
     exit 8736
252 252
 fi
253 253
 
254
+# remove automatic motd creator if it exists
255
+if [ -f $MICROSD_MOUNT_POINT/$ROOTFS/etc/init.d/motd ]; then
256
+    $SUDO rm -f $MICROSD_MOUNT_POINT/$ROOTFS/etc/init.d/motd
257
+fi
258
+
254 259
 # change the motd to show further install instructions
255 260
 echo '' >> /tmp/freedombone_motd
256 261
 echo 'Create a user for the system with:' >> /tmp/freedombone_motd