From 18066c790e3e2b2999c40a295f47bbc2ac8b3ca9 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 14 Jul 2014 12:00:31 +0200 Subject: [PATCH] Delete old unused code --- base_deb/etc/one-context.d/00-network | 16 ---------------- base_rpm/etc/one-context.d/00-network | 14 -------------- 2 files changed, 30 deletions(-) diff --git a/base_deb/etc/one-context.d/00-network b/base_deb/etc/one-context.d/00-network index a00026c..9079052 100755 --- a/base_deb/etc/one-context.d/00-network +++ b/base_deb/etc/one-context.d/00-network @@ -66,18 +66,6 @@ get_gateway() { echo $gateway } -get_interfaces() { - IFCMD="/sbin/ifconfig -a" - - LANG=C - - $IFCMD | grep ^eth | sed 's/ *Link encap:Ethernet.*HWaddr /-/g' -} - -get_mac() { - echo $1 | cut -d'-' -f 2 -} - get_ip() { ip=$(get_iface_var "IP") @@ -95,10 +83,6 @@ get_iface_var() { echo $var } -upcase() { - echo "$*" | tr '[:lower:]' '[:upper:]' -} - gen_iface_conf() { cat <