Comment 5 for bug 573207

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Sorry, ${f%%.*} instead of ${f/.*}:

for f in /target/opt/ltsp/images/*; do
    LTSP_ARCH="${f%%.*}"
    break
done
if [ -n "$LTSP_ARCH" ] && [ "$LTSP_ARCH" != "i386" ]; then
    sed -i "s/i386/$LTSP_ARCH/g" /target/etc/ltsp/dhcpd.conf
fi