Check-in [cb5ec7d978]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

SHA1 Hash:cb5ec7d978891250df7fa747471490a73b300d94
Date: 2012-04-09 11:17:48
User: BarryK
Comment:do not delete /tmp/* at shutdown

Tags And Properties
Changes

Changes to woof-code/rootfs-skeleton/etc/rc.d/rc.shutdown

@@ -62,10 +62,11 @@
 #120129 karl godt: need to rearrange order, refer http://murga-linux.com/puppy/viewtopic.php?t=71767&start=405.
 #120129 karl godt: improved ZOMBIES, see http://www.murga-linux.com/puppy/viewtopic.php?t=73122
 #120130 rodin.s: update for gettext (line 91).
 #120218 changed TEXTDOMAIN=etcrcd___rc.shutdown to TEXTDOMAIN=rc.shutdown (unlikely to be any other file same name in $PATH).
 #120219 zekebaby: unmount network shares, alternate method. 120220 another alternate method.
+#120409 experimenting with minit, i discovered "rm -rf /tmp/*" is killing mingetty. initrd.gz wipes it, have added code to wipe for full hd install at bootup...
 
 #110923
 . /usr/bin/gettext.sh # enables use of eval_gettext (several named variables) and ngettext (plurals)
 export TEXTDOMAIN=rc.shutdown
 export OUTPUT_CHARSET=UTF-8
@@ -508,11 +509,12 @@
 #the top unionfs layer, meaning that there is no intermediary tmpfs in ram for working
 #files, hence everything is saved directly, ditto for PUPMODE=2 a full h.d. install.
 #hence need to do some explicit wiping here...
 echo -n "" > /var/log/messages #delete, as it keeps growing.(note choosepartfunc uses this)
 rm -f /var/log/X*
-rm -rf /tmp/*
+#120409 experimenting with minit, i discovered this line is killing mingetty. initrd.gz wipes it, have added code to wipe for full hd install at bootup...
+#rm -rf /tmp/*
 rm -f /var/lock/LCK*
 rm -f /var/run/*.pid
 rm -rf /root/tmp 2> /dev/null #...note, not screening this out in any of above save modes.
 rm -rf /root/.thumbnails/* 2> /dev/null
 [ -d /var/tmp ] && rm -rf /var/tmp/* 2> /dev/null #100820

Changes to woof-code/rootfs-skeleton/etc/rc.d/rc.sysinit

@@ -69,10 +69,11 @@
 #120216 slight mods to make sss translation easy (see /usr/share/sss/script_strings).
 #120217 improvement for full hd install, non-english.
 #120301 need to load console font earlier.
 #120301 a problem if initrd has kernel default font, switching here changes all o/p from initrd to partial garbage.
 #120313 fix 120301 font garbage. 120331 clear requires redirection to /dev/console.
+#120409 no longer deleting /tmp/* in rc.shutdown... (note, init script in initrd.gz wipes it)
 
 #unset TZ #100319 busybox hwclock gives priority to this (rather than /etc/localtime) and 'init' has set it wrong.
 #...comment-out for now. note, TZ now set in rc.country.
 ORIGLANG="`grep '^LANG=' /etc/profile | cut -f 2 -d '=' | cut -f 1 -d ' '`" #120217
 ORIGLANG1="${ORIGLANG%_*}" #ex: en
@@ -149,10 +150,13 @@
 echo -n "Making the filesystem usable..." >/dev/console #making filesystem usable. need this redirection!
 busybox mount -t proc none /proc ;STATUS=$((STATUS+$?))
 
 if [ ! -d /initrd ];then #w468
  busybox mount -o remount,rw /
+ #120409 no longer deleting /tmp/* in rc.shutdown... (note, init script in initrd.gz wipes it)
+ rm -rf /tmp/*
+ rm -rf /tmp/.[0-9a-zA-Z]*
  echo 'PUPMODE=2' > /etc/rc.d/PUPSTATE
  if [ "$ORIGLANG1" != "en" ];then #120217
   echo "OUTPUT_CHARSET=UTF-8
 export OUTPUT_CHARSET" >> /etc/rc.d/PUPSTATE
  fi