Re: [arch-general] Scripting assistance

2012-02-23 Thread pete
On Thu, 23 Feb 2012 07:42:09 -0500 Genes MailLists wrote: > On 02/23/2012 03:25 AM, Jesse Juhani Jaara wrote: > > Something like > > > > if `ip link show eth0 | grep -q 'state UP'`; then > > you mount command hete > > fi > > > > in /etc/rc.local maybe > > You could also use 'arp' to check

Re: [arch-general] Scripting assistance

2012-02-23 Thread Tim Stella
On 02/23/12 at 10:04am, Alfredo Palhares wrote: > Hello Pete, > > > When i am at home i would like the laptop to mount my NAS drive on > > boot always connect via ETH cable never wiFi but out if i connect > > via cable or wirless do not try to mount NAS drive , My thoughts > > Would it be pos

Re: [arch-general] Scripting assistance

2012-02-23 Thread Genes MailLists
On 02/23/2012 03:25 AM, Jesse Juhani Jaara wrote: > Something like > > if `ip link show eth0 | grep -q 'state UP'`; then > you mount command hete > fi > > in /etc/rc.local maybe You could also use 'arp' to check for your NAS mac address on the interface before issuing the mount command. g

Re: [arch-general] Scripting assistance

2012-02-23 Thread Alfredo Palhares
Hello Pete, > When i am at home i would like the laptop to mount my NAS drive on > boot always connect via ETH cable never wiFi but out if i connect > via cable or wirless do not try to mount NAS drive , My thoughts > Would it be possible to script it so that it checks for an specific MAC > a

Re: [arch-general] Scripting assistance

2012-02-23 Thread Jesse Juhani Jaara
Something like if `ip link show eth0 | grep -q 'state UP'`; then you mount command hete fi in /etc/rc.local maybe signature.asc Description: This is a digitally signed message part.

[arch-general] Scripting assistance

2012-02-23 Thread pete
Hi .. Some i would like to do with the laptop when at home but not out and about When i am at home i would like the laptop to mount my NAS drive on boot always connect via ETH cable never wiFi but out if i connect via cable or wirless do not try to mount NAS drive , My thoughts Would it be