#!/bin/bash
dhcpcd -k eth0
/sbin/ip addr flush eth0
/sbin/ip link set eth0 down
/sbin/ip link set eth0 up
/sbin/brctl addbr bridge
/sbin/brctl addif bridge eth0
/sbin/ip link set bridge up
dhcpcd -n bridge
#dhclient bridge
