pre-mount and post-mount scripts
I've just discovered that these scripts are called with the disc's id string as a parameter. This makes it possible to avoid having disc checks rerun when another drive (e.g. a USB memory stick) is plugged in. My pre-mount script is now:
Code:
#!/bin/sh
logger -t $0 "$*"
if [ $1 = "152d/2338/100" ]; then
# mounting the usb system drive
# turn on swap
swapon -a
# check file systems
for i in `awk '/ext3/{print($1)}' /etc/fstab`; do
if [ -b $i ]; then
grep -q $i /proc/mounts || e2fsck -p $i 2>&1 | logger -t e2fsck
else
logger -t fstab "$i is not attached"
fi
done
# create mount points
for i in `awk '/ext3/{print($2)}' /etc/fstab`; do
mkdir -p $i
done
fi
and my post-mount script is:
Code:
#!/bin/sh
logger -t $0 "$*"
if [ $1 = "152d/2338/100" ]; then
# mounting the usb system drive
/opt/etc/init.d/rc.unslung start
fi
Obviously you need to substitute your disc id for the string "152d/2338/100".
Edit: to obtain the disc id, modify your pre-mount or post-mount script to include the line , do the flashfs save & commit, reboot and have a look at the syslog.
issues with new trans ver
Hi,
In think there are some issues with the new trans version (1.22-3)
- after pushing a torrent to start it takes a long time to start, longer than with the previous version
- when a torrent changes his state from active to seeding, the other downloading/uploading torrents stops, the downloading/uploading resumes after pressing "Watchdog"
- the overal speed is lower than the one I had with the previous version (1.22-2).
- I have one torrent that it was checked, and it stays at 100% for some hours now, and if I start a new torrent it automatically checking it, and it wont start unless the first one finishes.
Is there a way to install the previous verssion?