bootlogo.sh 1.68 KB
Newer Older
Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
1
#!/usr/bin/env bash
2
# shellcheck disable=SC1090
sulzbach's avatar
sulzbach committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#
# 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.
25

Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
26
#set -x
Alessandro Elias's avatar
Alessandro Elias committed
27

sulzbach's avatar
sulzbach committed
28
_PROF="${1}"
29
PREFIX="${PWD}"
30

sulzbach's avatar
sulzbach committed
31
source "${PREFIX}/conf/${_PROF}/create-iso.conf"
32
source "${PREFIX}/common.sh"
33

34
mkdir -p "${TMP}/bl/"
Lucas Sulzbach's avatar
Lucas Sulzbach committed
35
cd "${TMP}/bl/" || createIsoLogger --message "Unable to change directory" --tag "cd"
36
cpio -i < "${ISOLINUX}/bootlogo"
37
sed -i 's/ubuntu/Linux Educacional/Ig' ./*.{tr,hlp}
38 39 40
echo "" > "${TMP}/list"
for i in ./*; do
    echo "${i}" >> "${TMP}/list"
41
done
42 43 44
#ls -l | awk '{if(NR>1)print}' | cut -c44- > "${TMP}/list"
cpio -o < "${TMP}/list" > bootlogo
mv "${TMP}/bl/bootlogo" "${ISOLINUX}"
Lucas Sulzbach's avatar
Lucas Sulzbach committed
45
cd "${ISOLINUX}" || createIsoLogger --message "Unable to change directory" --tag "cd"
46
sed -i 's/ubuntu/Linux Educacional/Ig' ./*.{tr,hlp}
47 48
rm -rf "${TMP:?}/bl/"
rm "${TMP:?}/list"
49 50

exit 0