diff options
author | adv <adv@uma.es> | 2013-01-14 10:58:36 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2013-01-14 10:58:36 +0000 |
commit | 51d437e2fd400cfc3d755637f24a290076e4e501 (patch) | |
tree | a22fc5b22e6c1f7cbb4cbd5e4f0b220fcdbc336b /client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions | |
parent | 07984812334953f507b461d5fa9d964adf7af56e (diff) |
#572 #547 ogLive configura ogdns y ogproxy si están declaradas como parámetros de kernel
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3482 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions')
-rw-r--r-- | client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions b/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions index cb4824d2..5bd4c5db 100644 --- a/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions +++ b/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions @@ -160,12 +160,12 @@ ogPostConfigureFS() #####echo "nameserver $ogdns" > /etc/resolv.conf #configuramos el dns posterior ubuntu 12.04 #####echo "nameserver $ogdns" > /etc/resolvconf/resolv.conf.d/tail - mkdir -p /run/resolvconf - touch /run/resolvconf/resolv.conf - echo "nameserver $ogdns" > /run/resolvconf/resolv.conf + [ -n "${ogdns}" ] && mkdir -p /run/resolvconf + [ -n "${ogdns}" ] && touch /run/resolvconf/resolv.conf + [ -n "${ogdns}" ] && echo "nameserver $ogdns" > /run/resolvconf/resolv.conf #configuramos el uso del servicio http proxy - export http_proxy="$ogproxy" + [ -n "${ogproxy}" ] && export http_proxy="$ogproxy" # configuramos el /etc/networks #read -e NETIP NETDEFAULT <<<$(route -n | grep eth0 | awk -F" " '{print $1}') |