diff options
Diffstat (limited to 'recipes-append/sysvinit/files/auto-detect-hostname.patch')
| -rw-r--r-- | recipes-append/sysvinit/files/auto-detect-hostname.patch | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/recipes-append/sysvinit/files/auto-detect-hostname.patch b/recipes-append/sysvinit/files/auto-detect-hostname.patch deleted file mode 100644 index da70184..0000000 --- a/recipes-append/sysvinit/files/auto-detect-hostname.patch +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | diff --git a/rcS b/rcS | ||
| 2 | index 080b04f..51425ff 100755 | ||
| 3 | --- a/rcS | ||
| 4 | +++ b/rcS | ||
| 5 | @@ -22,6 +22,11 @@ export PATH runlevel prevlevel | ||
| 6 | . /etc/default/rcS | ||
| 7 | |||
| 8 | # | ||
| 9 | +# Update the hostname according to actual board type | ||
| 10 | +# | ||
| 11 | +echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"` > /etc/hostname | ||
| 12 | + | ||
| 13 | +# | ||
| 14 | # Trap CTRL-C &c only in this shell so we can interrupt subprocesses. | ||
| 15 | # | ||
| 16 | trap ":" INT QUIT TSTP | ||
