c0d3z3r0 / rbmode

2 stars 4 forks source link

rbMode

Tool for setting LAN/WAN mode on riverbed servers

Modes

Installation

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