Skip to content
Snippets Groups Projects
Commit 212622a7 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

le4/light: Fix the usage of the distname on some scripts

parent 352a06f7
No related branches found
No related tags found
No related merge requests found
...@@ -43,12 +43,12 @@ DISTRORELEASE="4.0" ...@@ -43,12 +43,12 @@ DISTRORELEASE="4.0"
cp -af "$TEMPLATES"/default/* "$CHROOTDIR"/etc/default cp -af "$TEMPLATES"/default/* "$CHROOTDIR"/etc/default
# Update casper config # Update casper config
cp -f "$TEMPLATES"/casper/10adduser-$1 \ cp -f "$TEMPLATES"/casper/10adduser \
"$CHROOTDIR"/usr/share/initramfs-tools/scripts/casper-bottom/10adduser "$CHROOTDIR"/usr/share/initramfs-tools/scripts/casper-bottom/10adduser
cp -f "$TEMPLATES"/casper/casper "$CHROOTDIR"/etc/init.d/ cp -f "$TEMPLATES"/casper/casper "$CHROOTDIR"/etc/init.d/
# Configures live user@host # Configures live user@host
if [ "$1" != "home" ] && [ "$1" != "desktop" ]; then if [ "$1" != "le4/home" ] && [ "$1" != "le4/desktop" ]; then
sed -i 's@[Uu]buntu@professor@g' "$CHROOTDIR"/etc/casper.conf sed -i 's@[Uu]buntu@professor@g' "$CHROOTDIR"/etc/casper.conf
sed -i 's@HOST="professor"@HOST="le"@g' "$CHROOTDIR"/etc/casper.conf sed -i 's@HOST="professor"@HOST="le"@g' "$CHROOTDIR"/etc/casper.conf
else else
...@@ -65,7 +65,7 @@ sed -i "s@$(grep "color sel" $CDDIR/isolinux/stdmenu.cfg \ ...@@ -65,7 +65,7 @@ sed -i "s@$(grep "color sel" $CDDIR/isolinux/stdmenu.cfg \
# Update isolinux splash # Update isolinux splash
rm -f "$CDDIR"/isolinux/splash.* rm -f "$CDDIR"/isolinux/splash.*
if [ "$1" == "light" ]; then if [ "$1" == "le4/light" ]; then
echo "ISOLINUX LIGHT" echo "ISOLINUX LIGHT"
cp -af "$TEMPLATES"/isolinux_light/* "$CDDIR"/isolinux/ cp -af "$TEMPLATES"/isolinux_light/* "$CDDIR"/isolinux/
else else
...@@ -82,7 +82,7 @@ echo "http://www.c3sl.ufpr.br/le/" > "$CDDIR"/.disk/release_notes_url ...@@ -82,7 +82,7 @@ echo "http://www.c3sl.ufpr.br/le/" > "$CDDIR"/.disk/release_notes_url
#[ "$1" != "home" ] && cp -af $TEMPLATES/le-installer/le-proinfodata-installer $CHROOTDIR/etc/init.d/ #[ "$1" != "home" ] && cp -af $TEMPLATES/le-installer/le-proinfodata-installer $CHROOTDIR/etc/init.d/
#[ "$1" == "multiterminal" ] && cp -af $TEMPLATES/le-installer/le-multiterminal-installer $CHROOTDIR/etc/init.d/ #[ "$1" == "multiterminal" ] && cp -af $TEMPLATES/le-installer/le-multiterminal-installer $CHROOTDIR/etc/init.d/
if [ "$1" != "home" ] && [ "$1" != "desktop" ]; then if [ "$1" != "le4/home" ] && [ "$1" != "le4/desktop" ]; then
chpasswd <<< "root:qwe123" chpasswd <<< "root:qwe123"
cat <<EOF >>"$CHROOTDIR"/etc/sudoers cat <<EOF >>"$CHROOTDIR"/etc/sudoers
...@@ -126,7 +126,7 @@ rm -rf "$CDDIR"/wubi.exe "$CDDIR"/autorun.inf ...@@ -126,7 +126,7 @@ rm -rf "$CDDIR"/wubi.exe "$CDDIR"/autorun.inf
"$CHROOTDIR"/usr/share/doc/libdvdread4/install-css.sh "$CHROOTDIR"/usr/share/doc/libdvdread4/install-css.sh
# Turn off acpi for light version # Turn off acpi for light version
if [ "$1" != "light" ]; then if [ "$1" != "le4/light" ]; then
echo "ACPI OFF" echo "ACPI OFF"
cp -f "$TEMPLATES"/grub "$CHROOTDIR"/etc/default/ cp -f "$TEMPLATES"/grub "$CHROOTDIR"/etc/default/
fi fi
......
...@@ -46,13 +46,13 @@ cp -af "$CHROOTDIR"/lib/plymouth/themes/le ./lib/plymouth/themes/ ...@@ -46,13 +46,13 @@ cp -af "$CHROOTDIR"/lib/plymouth/themes/le ./lib/plymouth/themes/
cp -af "$TEMPLATES"/plymouth/default.plymouth ./lib/plymouth/themes/ cp -af "$TEMPLATES"/plymouth/default.plymouth ./lib/plymouth/themes/
# Update initrd casper # Update initrd casper
if [ "$1" != "home" ] && [ "$1" != "desktop" ]; then if [ "$1" != "le4/home" ] && [ "$1" != "le4/desktop" ]; then
sed -i 's@[Uu]buntu@professor@g' ./etc/casper.conf sed -i 's@[Uu]buntu@professor@g' ./etc/casper.conf
sed -i 's@HOST="professor"@HOST="le"@g' ./etc/casper.conf sed -i 's@HOST="professor"@HOST="le"@g' ./etc/casper.conf
else else
sed -i 's@[Uu]buntu@le-live@g' ./etc/casper.conf sed -i 's@[Uu]buntu@le-live@g' ./etc/casper.conf
fi fi
cp -f "$TEMPLATES"/casper/10adduser-$1 ./scripts/casper-bottom/10adduser cp -f "$TEMPLATES"/casper/10adduser ./scripts/casper-bottom/10adduser
# Regenarete initrd image # Regenarete initrd image
find ./ | cpio --quiet --dereference -o -H newc | lzma -7 \ find ./ | cpio --quiet --dereference -o -H newc | lzma -7 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment