--- toast-linux 2004/04/14 18:03:09 1.19 +++ toast-linux 2004/04/14 22:28:34 1.20 @@ -1019,9 +1019,10 @@ ln -s "$relrootdir/$i" "$target/$i" done -for i in mnt/floppy proc sys usr/man var/empty var/lock var/run var/log; do +for i in mnt/floppy proc sys tmp usr/man var/empty var/lock var/run var/log; do mkdir -p "$target/$i" done +chmod 1777 "$target/tmp" ln -s "../usr/share/zoneinfo/`cat /etc/TZ`" "$target/etc/localtime" ln -s . "$target/usr/usr" @@ -1342,7 +1343,7 @@ --- FILE root/sbin/toast --- #!/bin/sh [ -z "$TOAST_ARMDIR" ] && export TOAST_ARMDIR=/usr -[ -x /mnt/root/bin/busybox ] && export TOAST_PRELOAD=false +ls /mnt/root/lib/ld-uClibc.so.0 >/dev/null 2>&1 && export TOAST_PRELOAD=false exec chroot /mnt/root /bin/toast "$@" --- FILE root/sbin/utoast --- @@ -1549,7 +1550,7 @@ displace() { - if [ -r "$1" ]; then + if ls "$1" >/dev/null 2>&1; then displace "$1.off" announce mv "$1" "$1.off" mv "$1" "$1.off" || error