Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 21 Nov 2014, 23:24
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
patching /usr/sbin/filemnt
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 855
Location: SE

PostPosted: Sat 01 Dec 2012, 20:58    Post_subject:  patching /usr/sbin/filemnt  

Hello Smile!

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 Shocked.

Anyway, Smile/ MHHP

_________________
Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285

Slackos & 214X, ... and Q6xx
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7082
Location: Perth, Western Australia

PostPosted: Sun 02 Dec 2012, 19:52    Post_subject:  

Thanks, I have put that into Woof.
_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0449s ][ Queries: 12 (0.0043s) ][ GZIP on ]