#!/usr/bin/env bash # shellcheck disable=SC1090 # # Copyright (C) 2017 Centro de Computacao Cientifica e Software Livre # Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR # # This file is part of create-iso # # create-iso is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 3 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # WARNING: This script hasn't been used in a while. Probably won't just werk. #set -x _PROF="${1}" PREFIX="${PWD}" source "${PREFIX}/conf/${_PROF}/create-iso.conf" source "${PREFIX}/common.sh" mkdir -p "${TMP}/bl/" cd "${TMP}/bl/" || createIsoLogger --message "Unable to change directory" --tag "cd" cpio -i < "${ISOLINUX}/bootlogo" sed -i 's/ubuntu/Linux Educacional/Ig' ./*.{tr,hlp} echo "" > "${TMP}/list" for i in ./*; do echo "${i}" >> "${TMP}/list" done #ls -l | awk '{if(NR>1)print}' | cut -c44- > "${TMP}/list" cpio -o < "${TMP}/list" > bootlogo mv "${TMP}/bl/bootlogo" "${ISOLINUX}" cd "${ISOLINUX}" || createIsoLogger --message "Unable to change directory" --tag "cd" sed -i 's/ubuntu/Linux Educacional/Ig' ./*.{tr,hlp} rm -rf "${TMP:?}/bl/" rm "${TMP:?}/list" exit 0