Bonjour à tous,
Sorry, I misread the file name to send you, here it is.
Thank you.
Cordialement
Mount_all3: bash script automounts drives at startup
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
- Attachments
-
- drive_all.tar.gz
- (3.76 KiB) Downloaded 329 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]
Hey esmourguit
Its very good that you attached the file your file was translated to french so the line numbers are different and there were also edits to the file since it is a different version than mine
please let me know if it corrected the problem
you will also need to make a copy of this fixed drive_all and call it AppRun
and place /root/.pup_event/drive_sda2/AppRun
/root/.pup_event/drive_sda2/AppRun
to test with
*the AppRun is for each drive the drive_all is the master file that gets copied
the first time the drive icon is clicked
thanks
Joe
Its very good that you attached the file your file was translated to french so the line numbers are different and there were also edits to the file since it is a different version than mine
please let me know if it corrected the problem
you will also need to make a copy of this fixed drive_all and call it AppRun
and place /root/.pup_event/drive_sda2/AppRun
/root/.pup_event/drive_sda2/AppRun
to test with
*the AppRun is for each drive the drive_all is the master file that gets copied
the first time the drive icon is clicked
thanks
Joe
- Attachments
-
- drive_all-fixed-french.tar.gz
- (3.91 KiB) Downloaded 352 times
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour à tous,
Yes, it takes me a long time. In the begining, for Puppy 2.12 until Puppy 2.14, I was all alone, but one then two people came later to join me occasionally.
I found Puppy so exceptional that I wanted my compatriots, who are not good with foreign languages, discover and then use it more easily.
Cordialement
Yes, it takes me a long time. In the begining, for Puppy 2.12 until Puppy 2.14, I was all alone, but one then two people came later to join me occasionally.
I found Puppy so exceptional that I wanted my compatriots, who are not good with foreign languages, discover and then use it more easily.
Cordialement
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
A little fix I put to together.
Code: Select all
#*************************************************************************
fdisk -l | grep Linux | egrep -v "swap" | cut -f 1 -d ' '| sed 's/\/dev\///'>/tmp/Linux_LIST
if [ "$?" == "0" ]; then
echo "Linux_LIST written to /tmp/Linux_LIST"
Linux_LIST=$(</tmp/Linux_LIST)
#Code to produce home drive.
#Most of code is from the script: "/etc/rc.d/functions4puppy4".
imPATTERN='^/dev/'"${1}"
homedirve=`df | tr -s ' ' | cut -f 1,6 -d ' ' | grep "$imPATTERN" | grep -e ' /initrd/' | grep -v '/dev/loop*' | cut -f 1 -d ' '| sed 's/\/dev\///'`
#Removes the home drive from the Linux drives list.
#This means that the home drive desktop icon has the correct icon.
#I think should also fix the bug: "When home drive icon is clicked on. It gave me three Rox-Filer windows.".
cat /tmp/Linux_LIST | grep -v "$homedirve" > /tmp/Linux_LIST
for Linux_drive in `cat /tmp/Linux_LIST` ; do
mkdir -p /mnt/$Linux_drive
mount /dev/$Linux_drive /mnt/$Linux_drive
cat /tmp/Linux_LIST >>/tmp/list_of_drives
done
fi # bypass the mounting if no Linux drive found
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
abushcrafter
thanks for posting the code thats another way to go about removing the home directory
I just mount it on /mnt with the folder on the desktop
it can be safely unmounted because its at another mount point than the home directory
maybe later some different configure options could be passed to
allow for different preferences
maybe different icons or locations of icons too something like the
drive icon manager
Joe
thanks for posting the code thats another way to go about removing the home directory
I just mount it on /mnt with the folder on the desktop
it can be safely unmounted because its at another mount point than the home directory
maybe later some different configure options could be passed to
allow for different preferences
maybe different icons or locations of icons too something like the
drive icon manager
Joe