I agree that updating LEAF once a year is a pain. I usually build
another CF on a old box and just swap the CF, reboot once and its done.
Although it is not painless, each time I do it, I change things enough
to warrant the extra work. One of the questions was about write
protecting the CF. I run with the CF "write protected" and I admit that
this probably makes me lazy since I do not examine the logs as much as I
should (500 dropped packets a day)
I use two little scripts which I run manually for Bearing uClibc write
protect for ide - CF
* * * *
#! /bin/sh
# by Victor McAllister
# load-ide
echo "Ths script installs ide modules to access Compact Flash"
echo "First copy the files ide-core.o ide-dectect.o ide-disk.o"
echo "using SCP to the /lib/modules directory."
echo
MODULES="ide-core ide-detect ide-disk"
for MODULE in ${MODULES}
do
insmod ${MODULE}
done
if (lsmod | grep ide-)
then
echo
echo "Mount the CF possibly using: mount -t msdos /dev/hda1 /mnt"
echo
echo "DO NOT BACKUP INITRD or BACKUP EVERYTHING because the IDE"
echo "modules are not in /boot/lib/modules in the RAM filesystem."
else
echo
echo "IDE modules not loaded - CF drive not accessable."
echo "Did you forgot to SCP the files to /lib/modules."
fi
* * * * *
#! /bin/ash
# by Victor McAllister
# rm-ide
# This script removes modules for
# access to the CF ide disk
echo
MODULES="ide-disk ide-detect ide-core"
BOOTDIR="/boot/lib/modules"
LIBDIR="/lib/modules"
for MODULE in ${MODULES}
do
rmmod ${MODULE}
rm ${BOOTDIR}/${MODULE}.o
rm ${LIBDIR}/${MODULE}.o
done
echo
echo "The modules needed for IDE access are not plugged into"
echo "the kernel or located in the TWO modules directories."
echo
echo "The Compact Flash is NOT accessable."
* * * * *
Anyone who wants these two scripts packaged as cfprotec.lrp - I can send
as an attachment.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/