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

fix

parent 0562d33c
#!/usr/bin/env bash #!/usr/bin/env bash
set -o errexit set -o errexit
source /etc/railgun/profile
if grep -q $1 hacks.csv; then if grep -q $1 hacks.csv; then
sed -i "s/$1.*/$1,$2/" hacks.csv sed -i "s/$1.*/$1,$2/" hacks.csv
else else
...@@ -18,4 +21,4 @@ if [ "${gateway}" = "${RAILGUN_ID}" ]; then ...@@ -18,4 +21,4 @@ if [ "${gateway}" = "${RAILGUN_ID}" ]; then
echo ip route add $1 via ${RAILGUN_GATEWAY} echo ip route add $1 via ${RAILGUN_GATEWAY}
else else
echo ip route add $1 dev railgun${next_hop} src ${RAILGUN_ADDRESS} realm ${gateway} advmss 1360 echo ip route add $1 dev railgun${next_hop} src ${RAILGUN_ADDRESS} realm ${gateway} advmss 1360
fi fi
\ No newline at end of file
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