quote:
Een beetje zoeken op de wiki enz levert een hoop info op:
http://bfg100k.blogspot.com/search/label/NAS%20Project (ik heb niet de silentexeption funplug maar een andere, zie bijlage) en
http://bfg100k.blogspot.c...nsmission-and-clutch.html
Volg de instructies en pas waar nodig naar eigen situtie aan (locaties van folders e.d)
Hoe doe je een bijlage? Anyway hier is ie:
#!/bin/sh
USB_MOUNTP=/mnt/HD_a2/Datagb/sdc1
USB_DEV=sdc1
FFP_HD=/mnt/HD_a2/ffp
FFP_USB=$USB_MOUNTP/ffp
# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD_a2/ffp.log
exec >>$FFP_LOG 2>&1
# real path to ffp
FFP_PATH=$FFP_HD
# prefix used to compile ffp packages
FFP_PREFIX=/ffp
# rc file path
FFP_RC=$FFP_PREFIX/etc/rc
echo "**** fun_plug script for DNS-323 (2008-04-13
tp@fonz.de) ****"
date
usbmod_loaded=no
#copy usb-storage module
if [ -e $FFP_HD/lib/modules/usb-storage.ko ]; then
echo "Found usb-storage.ko module. Copying..."
cp $FFP_HD/lib/modules/usb-storage.ko /lib/modules/
#load usb-storage module
insmod /lib/modules/usb-storage.ko
echo "insmod usb-storage.ko"
sleep 2
usbmod_loaded=yes
fi
# find usb device
if test $usbmod_loaded = yes; then
usb_found=no
grep $USB_DEV /proc/partitions >/dev/null 2>/dev/null
if [ $? -ne 0 ]; then
# wait for disk...
let timeout=30
echo "Waiting for $USB_DEV (up to $timeout seconds) ..."
while [ $timeout -gt 0 ]; do
grep $USB_DEV /proc/partitions >/dev/null 2>/dev/null
[ $? -eq 0 ] && break
sleep 3
let timeout=${timeout}-5
done
grep $USB_DEV /proc/partitions >/dev/null 2>/dev/null
if [ $? -ne 0 ]; then
echo "Failed. Did not find $USB_DEV in /proc/partitions."
usb_found=no
else
echo "Found $USB_DEV in /proc/partitions"
usb_found=yes
fi
else
usb_found=yes
fi
# mount usb device
if test $usb_found = yes; then
mkdir -p $USB_MOUNTP
echo -n "Mounting /dev/$USB_DEV on $USB_MOUNTP ..."
mount /dev/$USB_DEV $USB_MOUNTP
if [ $? -ne 0 ]; then
echo "Failed"
else
echo "Success"
fi
fi
fi
if [ -d $FFP_USB ] || [ -r $USB_MOUNTP/fun_plug.tgz ]; then
echo "* Found FFP on USB device"
FFP_PATH=$FFP_USB
FFP_TARBALL=$USB_MOUNTP/fun_plug.tgz
#relink logging
mv $FFP_LOG $FFP_USB/
FFP_LOG=$FFP_USB/ffp.log
exec >>$FFP_LOG 2>&1
else
echo "* FFP was not found on a USB device. Reverting back to HDD-based FFP"
FFP_PATH=$FFP_HD
FFP_TARBALL=$FFP_PATH/../fun_plug.tgz
fi
# install tarball
if [ -r $FFP_TARBALL ]; then
echo "* Installing $FFP_TARBALL ..."
mkdir -p $FFP_PATH && tar xzvf $FFP_TARBALL -C $FFP_PATH
if [ $? -eq 0 ]; then
echo "* OK"
fi
rm $FFP_TARBALL
fi
# create FFP_PREFIX link
echo "ln -snf $FFP_PATH $FFP_PREFIX"
ln -snf $FFP_PATH $FFP_PREFIX
# suid busybox
if [ -x $FFP_PREFIX/bin/busybox ]; then
chown root.root $FFP_PREFIX/bin/busybox
chmod 0755 $FFP_PREFIX/bin/busybox
chmod u+s $FFP_PREFIX/bin/busybox
chown root.root $FFP_PREFIX/etc/rc
chmod 0755 $FFP_PREFIX/etc/rc
fi
# run commands
if [ -x $FFP_RC ]; then
echo "* Running $FFP_RC ..."
$FFP_RC
echo "* OK"
else
echo "$FFP_RC: Not found or not executable"
fi
/sys/crfs/LPRng/lprm all
/ffp/fanspeed.sh
succes, ik hoor het wel als je er niet uitkomt