Re: Scripting assistance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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/




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux