Re: Set ip lan address /etc/environment

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



Hi Maykel,

> $ source /etc/environment
> ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1)"

https://wiki.archlinux.org/index.php/Environment_variables#Globally says
/etc/environment doesn't take code, just simple assignments.
Also see pam_env(8) and the rest of that wiki page.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



[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