[arch-general] Scripting assistance

Genes MailLists lists at sapience.com
Thu Feb 23 07:42:09 EST 2012


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.

  gene/




More information about the arch-general mailing list