blob: da70184cced310f2cfea0608a10a07ba175f89cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff --git a/rcS b/rcS
index 080b04f..51425ff 100755
--- a/rcS
+++ b/rcS
@@ -22,6 +22,11 @@ export PATH runlevel prevlevel
. /etc/default/rcS
#
+# Update the hostname according to actual board type
+#
+echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"` > /etc/hostname
+
+#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
|