Commit 2374a983 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 0562d33c
#!/usr/bin/env bash
set -o errexit
source /etc/railgun/profile
if grep -q $1 hacks.csv; then
sed -i "s/$1.*/$1,$2/" hacks.csv
else
......@@ -18,4 +21,4 @@ if [ "${gateway}" = "${RAILGUN_ID}" ]; then
echo ip route add $1 via ${RAILGUN_GATEWAY}
else
echo ip route add $1 dev railgun${next_hop} src ${RAILGUN_ADDRESS} realm ${gateway} advmss 1360
fi
\ No newline at end of file
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment