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

-- 
default LTSP dhcpd.conf file wrongly configured
https://bugs.launchpad.net/bugs/573207
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to