Commit 178df354 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb

le-gera-iso: Fix some naming problems in the minicom scripts

Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent c95d5f4c
......@@ -65,14 +65,14 @@ cp "$TEMPLATES"/.pam_environment "$CHROOTDIR"/etc/skel
# Configures live user@host
case "$1" in
minicom)
sed -i 's@[Uu]buntu@mc@g' "$CHROOTDIR"/etc/casper.conf
sed -i 's@HOST="mc"@HOST="le5-telecentro"@g' "$CHROOTDIR"/etc/casper.conf
"minicom/client")
sed -i 's@[Uu]buntu@monitor@g' "$CHROOTDIR"/etc/casper.conf
sed -i 's@HOST="monitor"@HOST="le5-telecentro"@g' "$CHROOTDIR"/etc/casper.conf
touch "$CHROOTDIR"/.im_a_live
;;
minicom_server)
sed -i 's@[Uu]buntu@mc@g' "$CHROOTDIR"/etc/casper.conf
sed -i 's@HOST="mc"@HOST="le5-servidor-telecentro"@g' $CHROOTDIR/etc/casper.conf
"minicom/server")
sed -i 's@[Uu]buntu@monitor@g' "$CHROOTDIR"/etc/casper.conf
sed -i 's@HOST="monitor"@HOST="le5-servidor-telecentro"@g' $CHROOTDIR/etc/casper.conf
touch "$CHROOTDIR"/.im_a_live
;;
*)
......@@ -81,10 +81,10 @@ case "$1" in
;;
esac
echo "export \"FLAVOUR=le5\"" >> $CHROOTDIR/etc/casper.conf
echo "export \"FLAVOUR=le5\"" >> "$CHROOTDIR"/etc/casper.conf
cp -f "$TEMPLATES"/casper/10adduser-$(dirname $1) \
"$CHROOTDIR"/usr/share/initramfs-tools/scripts/casper-bottom/25adduser
#cp -f "$TEMPLATES"/casper/10adduser-$(dirname $1) \
#"$CHROOTDIR"/usr/share/initramfs-tools/scripts/casper-bottom/25adduser
# Sets deb-conf install command
sed -i 's@Ubuntu@LE@g' "$CDDIR"/preseed/ubuntu.seed
......
......@@ -51,13 +51,13 @@ unlzma -c -S .lz $CDDIR/casper/initrd.lz | cpio -id
# Update initrd casper
case "$1" in
minicom)
sed -i 's@[Uu]buntu@mc@g' ./etc/casper.conf
sed -i 's@HOST="mc"@HOST="le5-telecentro"@g' ./etc/casper.conf
"minicom/client")
sed -i 's@[Uu]buntu@monitor@g' ./etc/casper.conf
sed -i 's@HOST="monitor"@HOST="le5-telecentro"@g' ./etc/casper.conf
;;
minicom_server)
sed -i 's@[Uu]buntu@mc@g' ./etc/casper.conf
sed -i 's@HOST="mc"@HOST="le5-servidor-telecentro"@g' ./etc/casper.conf
"minicom/server")
sed -i 's@[Uu]buntu@monitor@g' ./etc/casper.conf
sed -i 's@HOST="monitor"@HOST="le5-servidor-telecentro"@g' ./etc/casper.conf
;;
*)
sed -i 's@[Uu]buntu@le5-live@g' ./etc/casper.conf
......@@ -66,7 +66,7 @@ esac
echo "export \"FLAVOUR=le5\"" >> ./etc/casper.conf
cp -f $TEMPLATES/casper/10adduser-$(dirname $1) ./scripts/casper-bottom/25adduser
cp -f $TEMPLATES/casper/10adduser ./scripts/casper-bottom/25adduser
# Regenarete initrd image
find ./ | cpio --quiet --dereference -o -H newc | lzma -7 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment