I want to post, that I got more into the structure of `pup_event_frontend_d`
and I discovered, that the daemon-loop doesn't look for /tmp/pup_event_icon_change_flag .
It is a little confusing, that some functions at /sbin/pup_event_fronend_d and /etc/rc.d/functions4puppy4 are resembling each other .
For now I've done some new adjustments to /sbin/pup_event_frontend_d, which seem to work fine :
Code: Select all
#v407 poll to see if a ls120 or zip floppy diskette inserted...
for ONEFLOPPY in $DRVS_FLOPPY
do
[ "$ONEFLOPPY" = "" ] && continue #precaution
probe_floppy_func $ONEFLOPPY
done
if test -f /tmp/pup_event_icon_change_flag ; then
ICONWIPE=`cat /tmp/pup_event_icon_change_flag`
if [ "$ICONWIPE" = "ICONWIPE" ] ; then
Floppy=`mut drivelist | grep -o fd[0-9]`
Partitions=` probepart -s | grep -v none | grep -v swap | cut -f 1 -d '|' | cut -f 3 -d '/'`
[ "$Floppy" != "" ] && for i in $Floppy; do icon_remove_func $i ; done; i=0
[ "$Partitions" != "" ] && for i in $Partitions; do icon_remove_func $i; done ; i=0
sleep 1
for i in $Floppy; do icon_unmounted_func $i ; done; i=0
for i in $Partitions; do icon_unmounted_func $i; done ; i=0
Mounted=`mount | grep mnt | cut -f 1 -d " " | cut -f 3 -d '/'`
for i in $Mounted; do icon_mounted_func $i; done; i=0
Rootdevice=`df | grep -w '/' | tr -s " " | cut -f 1 -d " " | cut -f 3 -d '/'`
icon_mounted_func $Rootdevice
sync
rm -f /tmp/pup_event_icon_change_flag
fi
fi
done #2 second loop.
###END###