View Single Post
  #9   (View Single Post)  
Old 21st February 2012
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Quote:
Originally Posted by Carpetsmoker View Post
It's easy to use a config file, just make it a shell script and source (.)
It already does, check the latest version:

Code:
[ -f /usr/local/etc/automount.conf ] && . /usr/local/etc/automount.conf
... and an exampe configuration file:
https://github.com/vermaden/automoun...automount.conf

Quote:
Originally Posted by Carpetsmoker View Post
Your script will break if I installed stuff I need/want in /usr/pkg/bin/ or ~/bin/ or .... ?
Dunno what script names (ntfs-3g for example) You have in Your PATH ;p

Quote:
Originally Posted by Carpetsmoker View Post
It's not your script's job to fix a potentially broken PATH ...
Its my job to SET needed PATH for the script job.

Quote:
Originally Posted by Carpetsmoker View Post
At the very least *append* it, instead of overwriting it.
Ok, You convinced me.

Quote:
Originally Posted by Carpetsmoker View Post
I see. It still looks strange You should pick up some other scripting language (Ruby/Perl/Python/...).
None of them is in the base, and I wanted to use something from the base system.

Quote:
Originally Posted by Carpetsmoker View Post
I find myself avoiding shell scripting at all costs these days ...
I use sh(1) as long as its quite simple, then I try at python(1)
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote