<commit_before>#!/bin/sh

sed -i 's/openwrt.freeioe.org:81/downloads.openwrt.org/g' /etc/opkg/distfeeds.conf
sed -ie '/video/d' /etc/opkg/distfeeds.conf
sed -ie '/freifunk/d' /etc/opkg/distfeeds.conf
sed -ie '/kooiot/d' /etc/opkg/distfeeds.conf
sed -ie '/kooiot/d' /etc/opkg/customfeeds.conf

source /etc/openwrt_release
echo "src/gz kooiot http://freeioe.oss-cn-beijing.aliyuncs.com/openwrt/${DISTRIB_RELEASE}/packages/${DISTRIB_ARCH}/kooiot" >> /etc/opkg/distfeeds.conf

# sed -ie '/option check_signature/d' /etc/opkg.conf
if [ -f /etc/opkg/keys/cce9dfbc10bada5a ]; then
echo "opkg key exists"
else
echo "untrusted comment: Local build key" > /etc/opkg/keys/cce9dfbc10bada5a
echo "<KEY>" >> /etc/opkg/keys/cce9dfbc10bada5a
fi

opkg update && opkg install robot-server robot-pong

# TODO: Change network IPs<commit_msg>factory-tlink: update server install script<commit_after>#!/bin/sh

sed -i 's/openwrt.freeioe.org:81/downloads.openwrt.org/g' /etc/opkg/distfeeds.conf
sed -ie '/video/d' /etc/opkg/distfeeds.conf
sed -ie '/freifunk/d' /etc/opkg/distfeeds.conf
sed -ie '/kooiot/d' /etc/opkg/distfeeds.conf
sed -ie '/kooiot/d' /etc/opkg/customfeeds.conf

source /etc/openwrt_release
echo "src/gz kooiot http://freeioe.oss-cn-beijing.aliyuncs.com/openwrt/${DISTRIB_RELEASE}/packages/${DISTRIB_ARCH}/kooiot" >> /etc/opkg/distfeeds.conf

# sed -ie '/option check_signature/d' /etc/opkg.conf
if [ -f /etc/opkg/keys/cce9dfbc10bada5a ]; then
echo "opkg key exists"
else
echo "untrusted comment: Local build key" > /etc/opkg/keys/cce9dfbc10bada5a
echo "<KEY>" >> /etc/opkg/keys/cce9dfbc10bada5a
fi

opkg update && opkg install robot-server robot-pong robot-web

# TODO: Change network IPs
{'fraction_non_alphanumeric': 0.15755053507728894, 'fraction_numerical': 0.016646848989298454, 'mean_word_length': 4.226708074534161, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6810842', 'n_tokens_mistral': 730, 'n_tokens_neox': 721, 'n_words': 130}