Developing lightweight computation at the DSG edge

qmp_enable_opkg_feeds 421 Bytes
Newer Older
1
2
3
4
5
6
7
#!/bin/sh

source /etc/openwrt_release
ARCH=`echo $DISTRIB_TARGET | cut -d '/' -f 1`
DFEEDS_FILE=/etc/opkg/distfeeds.conf
CFEEDS_FILE=/etc/opkg/customfeeds.conf

Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
8
cat $DFEEDS_FILE | grep clearance_qmp_ | sed 's/^#//' | sed 's/^ //' | sed 's!http://downloads.openwrt.org/chaos_calmer/15.05!http://fw.qmp.cat/Releases/3.2.1!' | sed "s!$DISTRIB_TARGET!$ARCH!" >> $CFEEDS_FILE
9
sed --in-place '/clearance_qmp_/d' $DFEEDS_FILE
10