#!/bin/sh mkdir -p /etc/config /etc/init.d /usr/sbin [ -f /etc/config/wan-failover ] || cp -a wan-failover.config /etc/config/wan-failover cp -a wan-failover.init.d /etc/init.d/wan-failover cp -a wan-failover /usr/sbin/wan-failover chmod +x /etc/init.d/wan-failover /usr/sbin/wan-failover ln -sf ../init.d/wan-failover /etc/rc.d/S99wan-failover ln -sf ../init.d/wan-failover /etc/rc.d/K85wan-failover