The time now is Mon 20 May 2013, 02:10
All times are UTC - 4 |
| Author |
Message |
MinHundHettePerro

Joined: 05 Feb 2009 Posts: 831 Location: SE
|
Posted: Sat 01 Dec 2012, 20:58 Post subject:
patching /usr/sbin/filemnt |
|
Hello !
When something goes awry with mounting a file with /usr/sbin/filemnt, the /mnt/+..+..+.. entry is left there - forcing another run of /usr/sbin/filemnt to remove it-
To redeem:
Patch /usr/sbin/filemnt with (older filemnt, like in slacko-5.3) | Code: | --- filemnt_org 2012-11-05 23:03:21.000000000 +0100
+++ filemnt 2012-12-01 23:08:31.000000000 +0100
@@ -133,6 +133,8 @@
# yaf-splash -timeout 6 -font "8x16" -outline 0 -margin 4 -bg green -text "SUCCESS! Click $imgFileBASE icon again to unmount it" & #BK
# /usr/X11R7/bin/yaf-splash -timeout 6 -font "8x16" -outline 0 -margin 4 -bg green -text "SUCCESS! Click $imgFileBASE icon again to unmount it" & #BK
yaf-splash -timeout 6 -bg green -text "SUCCESS! Click $imgFileBASE icon again to unmount it" & #BK
+ else # MHHP 121201
+ rmdir $MntPt # /MHHP 121201
fi
else ### file's mounted, unmount it
| or, for newer versions of /usr/sbin/filemnt | Code: | --- filemnt_org 2012-11-05 23:03:21.000000000 +0100
+++ filemnt 2012-12-01 23:08:31.000000000 +0100
@@ -193,6 +193,8 @@
# yaf-splash -timeout 6 -font "8x16" -outline 0 -margin 4 -bg green -text "SUCCESS! Click $imgFileBASE icon again to unmount it" & #BK
# /usr/X11R7/bin/yaf-splash -timeout 6 -font "8x16" -outline 0 -margin 4 -bg green -text "SUCCESS! Click $imgFileBASE icon again to unmount it" & #BK
yaf-splash -timeout 6 -bg green -text "SUCCESS! Click $imgFileBASE icon again to unmount it" & #BK
+ else # MHHP 121201
+ rmdir $MntPt # /MHHP 121201
fi
else ### file's mounted, unmount it
| .
Yes, the two patches above are identical - only difference is the line-numbers - patch (even with -F fuzziness set large (like 300)) mis-patches the newer filemnt when using the diff from the older filemnt .
Anyway, / MHHP
_________________ Celeron 2.8 GHz, 1 GiB RAM, i82845 graphics, many partitions, Pupmode 12 (13)
Mostly running Slacko & 214X
Nämen, vaf.... ln -s /dev/null MHHP
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Sun 02 Dec 2012, 19:52 Post subject:
|
|
Thanks, I have put that into Woof.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|