|
From: Jim M. <jv...@ho...> - 2025-08-06 20:25:07
|
Hi everyone,
Decided to update my leaf box to newer hardware. Was running 7.0.0-rc1
which is now a bit dated. Everything was running quite well.
New hardware is a M720Q tiny pc. Trying to get my power footprint lower
for UPS battery backup.
Anyway I went with the 7.5.0-RC1 and encountered a few problems.
The usb keyboard no longer works on the system console. Tried few thing
but couldn't get it to work. Happens on other hardware as well.
The backup module seems to require new dependencies which I tried
adding. Finally it starts a backup to another machine but is exceeding slow
and the Save feature of the lrp menu quits working after a backup is
started. This is reproduce-able.
from leaf.cfg
# List of packages to load
LRP="root license local bbnameif tc ppp pppoe ezipupd ipset iptables\
shorwall libelf bbntpd perl etherw knockd libpcap *libintl libpsl*\
openvpn easyrsa libssl openssl liblzo libcrpto ethtool dnsmasq\
modules dropbear mhttpd lighttpd webconf pppscrpt libsens sensors\
libgmp libuuid libpcre wget libz libnettle snmpmibs *libunistring*\
libm libsnmp libnl3 netsnmpd tftpd backup nano patch"
The modules I added to leaf.cfg are bolded
firewall# ps w|grep backup
9139 root 1400 S {backup} /bin/sh /etc/cron.weekly/backup
9140 root 1404 S {with_storage} /bin/sh /usr/sbin/with_storage
/var/lib/lrpkg/mnt /sbin/backup.sh
9144 root 1432 S {backup.sh} /bin/sh /sbin/backup.sh
10709 root 1412 S grep backup
firewall# cat /etc/backup.conf
MIRROR="http://a.b.c.d/cgi-bin"
LOGGING=1
LRPKG="/var/lib/lrpkg"
MNT="$LRPKG/mnt"
firewall# cat backup.sh
#!/bin/sh
. /etc/backup.conf
if [ -z "$STORAGE_MEDIA" ]; then
exit 1;
fi
files=`ls $STORAGE_MEDIA`
fl=""
for i in $files; do
fl=$fl+$i
done;
in.tftpd -l -s $STORAGE_MEDIA
wget --post-data="$fl" $MIRROR/backup.cgi -O /tmp/bk.res
if [ "`cat /tmp/bk.res`" -ne 0 ]; then
echo `date`": Backup failed" >>/var/log/backup.log
else
echo `date`": Backup successful" >>/var/log/backup.log
fi
kill `ps |grep "$STORAGE_MEDIA"|awk '{print $1}'`
rm /tmp/bk.res
Any help or I can help troubleshooting, please advice.
Jim
|