#!/bin/sh set -e pid=$(pidof udhcpc) || true [ -n "$pid" ] && kill -USR2 $pid if [ "$(pidof dhclient || true)" ]; then dhclient -r || true dhclient -1 -6 -r || true fi