Skip to content
Snippets Groups Projects
Commit d7577947 authored by João Gustavo Pauluk's avatar João Gustavo Pauluk
Browse files

40-configure_le5: Set "LE5" as LE-escola hostname (Refs: 1030)


The command will set LE5 as hostname, unless DHCP assign another one.

Signed-off-by: default avatarJoão Gustavo Pauluk <jgp12@c3sl.ufpr.br>
parent d6f92783
Branches
No related tags found
No related merge requests found
...@@ -107,6 +107,12 @@ sed -i s/'# exec update-grub'/'exec update-grub'/g \ ...@@ -107,6 +107,12 @@ sed -i s/'# exec update-grub'/'exec update-grub'/g \
sed -i 's@Ubuntu@LE@g' "$CDDIR"/preseed/ubuntu.seed sed -i 's@Ubuntu@LE@g' "$CDDIR"/preseed/ubuntu.seed
sed -i 's@ubuntu@le@g' "$CDDIR"/preseed/ubuntu.seed sed -i 's@ubuntu@le@g' "$CDDIR"/preseed/ubuntu.seed
# Set "LE" as hostname
sed -i '$a\
#Set "LE5" as hostname \
d-i netcfg/get_hostname string LE5'\
"$CDDIR"/preseed/ubuntu.seed
# Copy dbconf preseed # Copy dbconf preseed
if [ -d "$TEMPLATES"/preseed/ ]; then if [ -d "$TEMPLATES"/preseed/ ]; then
cp -r "$TEMPLATES"/preseed "$CDDIR"/ cp -r "$TEMPLATES"/preseed "$CDDIR"/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment