#!/bin/bash path="/var/lib/tftpboot/ltsp/pxelinux.cfg/default" sed -i -e "/include pxelinux.cfg\/lliurex-fix-it/d" $path if [ $1 ]; then if [ "$1" = 'enable' ]; then echo "include pxelinux.cfg/lliurex-fix-it" >> $path fi fi