2015-05-03 13:13:38 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd "$BUILDROOTBASE"
|
|
|
|
|
|
|
|
# Prep the feeds file
|
|
|
|
echo "src-git arednpackages git://git.aredn.org/aredn_packages;develop" > feeds.conf
|
|
|
|
cat feeds.conf.default >> feeds.conf
|
|
|
|
./scripts/feeds update -a
|
|
|
|
./scripts/feeds install -p arednpackages olsrd
|
|
|
|
./scripts/feeds install perl
|
|
|
|
./scripts/feeds install -p arednpackages vtun
|
2015-07-30 11:28:13 -06:00
|
|
|
./scripts/feeds install -a -p arednpackages
|
2015-05-03 13:13:38 -06:00
|
|
|
./scripts/feeds install snmpd
|
2015-06-18 22:54:30 -06:00
|
|
|
./scripts/feeds install ntpclient
|
2016-05-30 12:16:02 -06:00
|
|
|
./scripts/feeds install socat
|
|
|
|
./scripts/feeds install xinetd
|
2015-05-03 13:13:38 -06:00
|
|
|
|
|
|
|
SHORT_COMMIT=$(echo "$GIT_COMMIT" | awk '{ string=substr($0, 1, 8); print string; }' )
|
|
|
|
SHORT_BRANCH=$(echo "$GIT_BRANCH" | awk 'match($0,"/"){print substr($0,RSTART+1)}')
|
|
|
|
|
2016-05-29 23:04:59 -06:00
|
|
|
if [ ! -z "$BUILD_SET_VERSION" ]; then
|
2015-05-03 13:13:38 -06:00
|
|
|
echo "$BUILD_SET_VERSION" > "$BUILDROOTBASE/files/etc/mesh-release"
|
|
|
|
else
|
|
|
|
echo "${SHORT_BRANCH}-${BUILD_NUMBER}-${SHORT_COMMIT}" > "$BUILDROOTBASE/files/etc/mesh-release"
|
|
|
|
fi
|