Files
odroid-stamper/fixups/S00-network
Dongjin Kim ca1cba0580 commnad: add new flag '--linuxfactory=<IP address>'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5d84f0cde2123c25f3cbd30c6f500cabaaeac2a9
2024-11-27 15:21:14 +09:00

14 lines
259 B
Bash
Executable File

#!/bin/sh
mkdir -p $(dirname $(realpath -m /etc/resolv.conf))
cat>/etc/resolv.conf<<__EOF
nameserver 127.0.0.53
__EOF
if [ ! "x@@DEFAULT_LINUXFACTORY@@" = "x" ]; then
echo "@@DEFAULT_LINUXFACTORY@@ ppa.linuxfactory.or.kr" >> /etc/hosts
fi
cat /etc/hosts