openwrt-wan-failover/install.sh

10 lines
402 B
Bash
Raw Normal View History

2020-07-27 10:41:20 +00:00
#!/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