Tool for setting LAN/WAN mode on riverbed servers
aptitude install python2
wget https://raw.githubusercontent.com/c0d3z3r0/rbmode/master/rbmode.py
cp rbmode.py /usr/local/sbin/rbmode
chmod +x /usr/local/sbin/rbmode
echo i2c-dev >>/etc/modules
cat <<"EOF" >/etc/systemd/system/rbmode.service
[Unit]
Description=rbMode
Before=network-pre.target
Wants=network-pre.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/rbmode <mode> # Change <mode> to n, b or u
[Install]
WantedBy=network.target
EOF
systemctl enable rbmode.service
Load i2c-dev and set the mode manually
modprobe i2c-dev
rbmode u