Delete old unused code

pull/4/head
Javi Fontan 10 years ago
parent a1d2ae29e2
commit 18066c790e

@ -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 <<EOT
iface $DEV inet static

@ -66,16 +66,6 @@ get_gateway() {
echo $gateway
}
get_interfaces() {
IFCMD="/sbin/ifconfig -a"
$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")
@ -93,10 +83,6 @@ get_iface_var() {
echo $var
}
upcase() {
echo "$*" | tr '[:lower:]' '[:upper:]'
}
gen_iface_conf() {
cat <<EOT
NETMASK=$MASK

Loading…
Cancel
Save