Tiny Core Linux
Tiny Core Base => TCB Bugs => Topic started by: gerald_clark on February 28, 2010, 12:39:26 AM
-
Found this bug after changing name of my tce directory.
The command file produced had the tce dir at time of creation instead of using $TCEDIR.
change
echo '[ -e /usr/local/tce.installed/'"$APPNAME"' ] || tce-load -i '"$TCEDIR"'/optional/'"$EXTN" >> "$FILE"
to
echo '[ -e /usr/local/tce.installed/'"$APPNAME"' ] || tce-load -i '"\$TCEDIR"'/optional/'"$EXTN" >> "$FILE"
-
Good catch. Thanks.
-
Here is a workaround for the busybox bug I reported that also applies to ondemnad.
ls -1 does does not work properly on a symlink to a directory.
This also applies to ls symlink | anything.
I have both tiny core and micro core on the same machine with different tce directories.
In order to save space, I made tce/optional in mc a symlink to the one in tc.
This revealed the bug. Until busybox is fixed, here is a workaround.
Change
ls "$TCEDIR"/optional | grep -E .tcz[ml]*$ > "$TMP"
to
ls "$TCEDIR"/optional/ | grep -E .tcz[ml]*$ > "$TMP"