Files
odroid-stamper/fixups/S50-fixup-hostname
Dongjin Kim e0fca30c3e Reorder fixup script to add more scritps
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2021-01-06 05:20:43 +09:00

8 lines
194 B
Bash
Executable File

#!/bin/sh
echo "I: set default hostname to @@DEFAULT_HOSTNAME@@"
echo @@DEFAULT_HOSTNAME@@ > /etc/hostname
sed -i "/127.0.1.1/d" /etc/hosts
echo "127.0.1.1 @@DEFAULT_HOSTNAME@@" >> /etc/hosts