Compare commits
9 Commits
0418fabf93
...
18475fca74
Author | SHA1 | Date | |
---|---|---|---|
18475fca74 | |||
3c0b752465 | |||
af4e1053b6 | |||
31107a2ef5 | |||
68bee355e2 | |||
90e53ad77b | |||
80c1368f2c | |||
7b3a05217c | |||
e03f2fc84f |
|
@ -9,6 +9,8 @@
|
|||
# now I noticed there is actually a Makefile for openwrt in the repo already:
|
||||
# https://github.com/IchthysMaranatha/asterisk-chan-quectel/tree/master/openwrt
|
||||
|
||||
set -x
|
||||
|
||||
tar -xJf /Downloads/openwrt-sdk-${OPENWRT_VERSION}-*.tar.xz
|
||||
|
||||
cp -r feed openwrt-sdk-*/
|
||||
|
@ -23,11 +25,11 @@ cat ${pwd}/feeds.conf >> feeds.conf
|
|||
./scripts/feeds install -a
|
||||
|
||||
make defconfig
|
||||
echo 'CONFIG_PACKAGE_python3-packages=y' >> .config
|
||||
echo 'CONFIG_PACKAGE_python3-packages-list="CherryPy==18.8.0"' >> .config
|
||||
# Enable collectd network encryption
|
||||
echo "CONFIG_PACKAGE_COLLECTD_ENCRYPTED_NETWORK=y" >> .config
|
||||
|
||||
make package/python3-packages/compile
|
||||
make package/asterisk-chan-quectel/compile
|
||||
make package/collectd/compile
|
||||
# no signing key
|
||||
make package/index
|
||||
|
||||
|
@ -48,8 +50,8 @@ cp ${sdkdir}/bin/packages/aarch64_cortex-a72/quectel/*.ipk packages/
|
|||
|
||||
make info
|
||||
|
||||
# Double the size of the root partition
|
||||
echo "CONFIG_TARGET_ROOTFS_PARTSIZE=208" >> .config
|
||||
# Increase the size of the root partition
|
||||
echo "CONFIG_TARGET_ROOTFS_PARTSIZE=308" >> .config
|
||||
# Disable ext4 images
|
||||
echo "CONFIG_TARGET_ROOTFS_EXT4FS=n" >> .config
|
||||
|
||||
|
@ -66,7 +68,7 @@ PACKAGES="kmod-i2c-bcm2835 kmod-i2c-mux kmod-nf-nathelper-extra \
|
|||
asterisk-chan-quectel \
|
||||
ca-certificates \
|
||||
collectd collectd-mod-contextswitch collectd-mod-cpu \
|
||||
collectd-mod-curl \
|
||||
collectd-mod-curl collectd-mod-df \
|
||||
collectd-mod-dhcpleases collectd-mod-disk \
|
||||
collectd-mod-dns collectd-mod-entropy \
|
||||
collectd-mod-ethstat collectd-mod-exec \
|
||||
|
@ -84,8 +86,11 @@ PACKAGES="kmod-i2c-bcm2835 kmod-i2c-mux kmod-nf-nathelper-extra \
|
|||
collectd-mod-wireless \
|
||||
curl etherwake fail2ban hwclock i2c-tools \
|
||||
luci-app-mwan3 luci-app-upnp \
|
||||
luci-proto-wireguard \
|
||||
luci-ssl-nginx luci-app-acme \
|
||||
python3-packages python3-yaml \
|
||||
openssh-sftp-server tcpdump \
|
||||
iptables-nft ip6tables-nft \
|
||||
wireguard-tools wget-ssl \
|
||||
"
|
||||
|
||||
|
@ -104,16 +109,16 @@ cp ${pwd}/defaults/* files/etc/uci-defaults
|
|||
|
||||
cp ${pwd}/overlays/dualeth.txt ${BOOTSOURCE}
|
||||
|
||||
# cat << "EOF" >> ${BOOTCONFIG}
|
||||
# dtparam=i2c1=on
|
||||
# dtparam=spi=on
|
||||
# dtparam=i2s=on
|
||||
# dtoverlay=i2c-rtc,ds1307
|
||||
# EOF
|
||||
|
||||
cp ${BOOTCONFIG} .
|
||||
|
||||
echo "include dualeth.txt" >> ${BOOTCONFIG}
|
||||
cat << "EOF" >> ${BOOTCONFIG}
|
||||
dtparam=i2c1=on
|
||||
dtparam=spi=on
|
||||
dtparam=i2s=on
|
||||
dtoverlay=i2c-rtc,ds1307
|
||||
|
||||
include dualeth.txt
|
||||
EOF
|
||||
|
||||
make image PROFILE=${PROFILE} \
|
||||
PACKAGES="${PACKAGES}" DISABLED_SERVICES="dropbear" FILES="files"
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
[ "$(uci -q get luci.diag.dns)" = "bitmessage.org" ] && exit 0
|
||||
VERSION=1
|
||||
|
||||
# make a significant change
|
||||
/sbin/uci set luci.diag.dns='bitmessage.org'
|
||||
[ "$(uci -q get defaults.version.network)" -ge "$VERSION" ] & exit
|
||||
|
||||
# save version
|
||||
/sbin/uci set defaults.version.network="$VERSION"
|
||||
|
||||
# switch LAN to eth1
|
||||
/sbin/uci set network.@device[0].ports='eth1'
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
VERSION=1
|
||||
|
||||
[ "$(uci -q get defaults.version.dropbear)" -ge "$VERSION" ] && exit 0
|
||||
if [ "$(uci -q get defaults.version.dropbear)" -ge "$VERSION" ]
|
||||
then
|
||||
# may leave dropbear off after an upgrade
|
||||
/sbin/service dropbear enable
|
||||
/sbin/service dropbear restart
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# save version
|
||||
/sbin/uci set defaults.version.dropbear="$VERSION"
|
||||
|
|
Loading…
Reference in New Issue
Block a user