<commit_before>#!/bin/bash

PROFILE_ID=$1
PUSH_OPTIONS_FILE="/home/pi/.firewalla/run/ovpn_profile/$PROFILE_ID.push_options"
rm -f $PUSH_OPTIONS_FILE
for optionname in ${!foreign_option_*} ; do
  option="${!optionname}"
  echo $option >> $PUSH_OPTIONS_FILE
done

# loosen reverse path filter
sudo sysctl -w net.ipv4.conf.${dev}.rp_filter=2 || true

chown pi $PUSH_OPTIONS_FILE
# remove file with gateway IP, which will be created by route-up scripts afterward
GATEWAY_FILE="/home/pi/.firewalla/run/ovpn_profile/$PROFILE_ID.gateway"
rm -f $GATEWAY_FILE
# remove file with subnet mask, which will be created by route-up scripts afterward
SUBNET_FILE="/home/pi/.firewalla/run/ovpn_profile/$PROFILE_ID.subnet"
rm -f $SUBNET_FILE<commit_msg>adjust rps_cpus for vpn client interface<commit_after>#!/bin/bash

PROFILE_ID=$1
PUSH_OPTIONS_FILE="/home/pi/.firewalla/run/ovpn_profile/$PROFILE_ID.push_options"
rm -f $PUSH_OPTIONS_FILE
for optionname in ${!foreign_option_*} ; do
  option="${!optionname}"
  echo $option >> $PUSH_OPTIONS_FILE
done

# loosen reverse path filter
sudo sysctl -w net.ipv4.conf.${dev}.rp_filter=2 || true
sudo bash -c "echo 7 > /sys/class/net/${dev}/queues/rx-0/rps_cpus" || true

chown pi $PUSH_OPTIONS_FILE
# remove file with gateway IP, which will be created by route-up scripts afterward
GATEWAY_FILE="/home/pi/.firewalla/run/ovpn_profile/$PROFILE_ID.gateway"
rm -f $GATEWAY_FILE
# remove file with subnet mask, which will be created by route-up scripts afterward
SUBNET_FILE="/home/pi/.firewalla/run/ovpn_profile/$PROFILE_ID.subnet"
rm -f $SUBNET_FILE
{'fraction_non_alphanumeric': 0.12150127226463105, 'fraction_numerical': 0.005089058524173028, 'mean_word_length': 5.44672131147541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6621071', 'n_tokens_mistral': 587, 'n_tokens_neox': 576, 'n_words': 135}