There is still a problem with the ondemand script. Adding a ondemand app now creates the following script:
#!/bin/sh
TCEDIR=/etc/sysconfig/tcedir
if [ ! -e /usr/local/tce.installed/fluff ]; then
tce-load -is $TCEDIR/optional/fluff.tcz
fi
[ $(which fluff) ] && exec fluff
It should look like this:
#!/bin/sh
TCEDIR=/etc/sysconfig/tcedir
if [ ! -e /usr/local/tce.installed/fluff ]; then
tce-load -is $TCEDIR/optional/fluff.tcz
fi
[ $(which fluff) ] && exec fluff "$@"
By the way, what's the point declaring a TCEDIR variable when it's only used once?