Commit 6d97a735 authored by Y_Tomita's avatar Y_Tomita

Add sudo to enable init_nas_S1.

parent 35e81d8a
...@@ -52,20 +52,20 @@ load_module ../../targets/bin/ue_ip.ko ...@@ -52,20 +52,20 @@ load_module ../../targets/bin/ue_ip.ko
if [ "$1" = "UE" ]; then if [ "$1" = "UE" ]; then
echo "bring up $LTEIF interface for UE" echo "bring up $LTEIF interface for UE"
ifconfig $LTEIF up sudo ifconfig $LTEIF up
fi fi
ip route flush cache sudo ip route flush cache
sleep 1 sleep 1
sysctl -w net.ipv4.conf.all.log_martians=1 sudo sysctl -w net.ipv4.conf.all.log_martians=1
echo "Disabling reverse path filtering" echo "Disabling reverse path filtering"
sysctl -w net.ipv4.conf.all.rp_filter=0 sudo sysctl -w net.ipv4.conf.all.rp_filter=0
ip route flush cache sudo ip route flush cache
# Check table 200 lte in /etc/iproute2/rt_tables # Check table 200 lte in /etc/iproute2/rt_tables
fgrep lte /etc/iproute2/rt_tables > /dev/null fgrep lte /etc/iproute2/rt_tables > /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "200 lte " >> /etc/iproute2/rt_tables echo "200 lte " >> /etc/iproute2/rt_tables
fi fi
ip rule add fwmark 1 table lte sudo ip rule add fwmark 1 table lte
ip route add default dev $LTEIF table lte sudo ip route add default dev $LTEIF table lte
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