<commit_before>#!/bin/sh

REPO_PATH=$(pwd)
WRT_PATH="$1"

if [ -z "$WRT_PATH" ] ; then
  echo "Usage: ./install.sh <wrt path>"
  exit 1
fi

cat << EOFEEDS > $WRT_PATH/feeds.conf
src-svn packages svn://svn.openwrt.org/openwrt/packages
src-svn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package
src-link linkmeter $REPO_PATH/package
EOFEEDS

$WRT_PATH/scripts/feeds update

LUCIP=$WRT_PATH/feeds/luci/luci/patches
mkdir $LUCIP
cp patches/200-lucid-tpid-leak.patch $LUCIP
cp patches/205-luci-dispatcher-nopath.patch $LUCIP
cp patches/210-luci-node-inreq-flag.patch $LUCIP
cp patches/215-luci-adminfull-inreq.patch $LUCIP

$WRT_PATH/scripts/feeds install -p linkmeter avrdude
$WRT_PATH/scripts/feeds install -p linkmeter rrdtool
$WRT_PATH/scripts/feeds install -p linkmeter kmod-broadcom-sdhc26
$WRT_PATH/scripts/feeds install -p linkmeter linkmeter

cp .config $WRT_PATH

patch -p0 -d $WRT_PATH/package < patches/100-dhcp_add_hostname.patch<commit_msg>[wrt] Remove installation of nonexistent patches<commit_after>#!/bin/sh

REPO_PATH=$(pwd)
WRT_PATH="$1"

if [ -z "$WRT_PATH" ] ; then
  echo "Usage: ./install.sh <wrt path>"
  exit 1
fi

cat << EOFEEDS > $WRT_PATH/feeds.conf
src-svn packages svn://svn.openwrt.org/openwrt/packages
src-svn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package
src-link linkmeter $REPO_PATH/package
EOFEEDS

$WRT_PATH/scripts/feeds update

LUCIP=$WRT_PATH/feeds/luci/luci/patches
mkdir $LUCIP
cp patches/215-luci-adminfull-inreq.patch $LUCIP

$WRT_PATH/scripts/feeds install -p linkmeter avrdude
$WRT_PATH/scripts/feeds install -p linkmeter rrdtool
$WRT_PATH/scripts/feeds install -p linkmeter kmod-broadcom-sdhc26
$WRT_PATH/scripts/feeds install -p linkmeter linkmeter

cp .config $WRT_PATH

patch -p0 -d $WRT_PATH/package < patches/100-dhcp_add_hostname.patch
{'fraction_non_alphanumeric': 0.12424075096631695, 'fraction_numerical': 0.017117614577581448, 'mean_word_length': 4.826366559485531, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '6050034', 'n_tokens_mistral': 785, 'n_tokens_neox': 747, 'n_words': 141}