You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
549 B
Bash
24 lines
549 B
Bash
#!/bin/bash
|
|
|
|
OPENWRT_DIR="$1"
|
|
if test -z "$OPENWRT_DIR"; then
|
|
>&2 echo 'usage: ./install.sh openwrt-dir'
|
|
exit 1
|
|
fi
|
|
|
|
cd "$OPENWRT_DIR"
|
|
if test ! -x scripts/feeds; then
|
|
>&2 echo "no scripts/feeds, is $OPENWRT_DIR correct?"
|
|
exit 1
|
|
fi
|
|
|
|
if test -e feeds.conf && cat feeds.conf | awk '{print $2}' | grep -qE '^pantonshire$'; then
|
|
>&2 echo 'feed already installed'
|
|
exit 1
|
|
fi
|
|
|
|
echo 'src-git pantonshire https://git.pantonshire.com/tom/openwrt_feed.git' >> feeds.conf
|
|
./scripts/feeds update pantonshire
|
|
./scripts/feeds install -a -p pantonshire
|
|
|