- Mitglied seit
- 21. Jan 2010
- Beiträge
- 80
- Punkte für Reaktionen
- 0
- Punkte
- 0
#!/bin/sh
# S99dvdmnt.sh
case $1 in
start)
/bin/mount -o bind /volumeUSB1/usbshare/ /volume1/video/DVD/
;;
stop)
/bin/umount /volume1/video/DVD/
;;
*)
echo "Usage: $0 [start|stop]"
;;
esac
Das das Script sich nicht ohne "./" ausführen lässt wenn du im selben Verzeichnis bist, ist normal. Ist das dein einziges Problem?
echo -n 'Local package initialization:'
if [ -z "${local_startup}" ]; then
local_startup="/etc/rc.d /usr/syno/etc/rc.d /usr/local/etc/rc.d"
fi
echo "Test local" >>/root/test.start
case $1 in
start)
echo "Test local" >>/root/test.bevorstart
/bin/mount -o bind /volumeUSB1/usbshare/ /volume1/video/DVD/
echo "Test local" >>/root/test.afterstart
;;
stop)
/bin/umount /volume1/video/DVD/
;;
*)
echo "Usage: $0 [start|stop]"
;;
esac
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,data=ordered 0 0
/proc /proc proc rw 0 0
/tmp /tmp tmpfs rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
/dev/md2 /volume1 ext3 rw,data=writeback,usrquota,grpquota 0 0
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.