Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Vorhergehende Überarbeitung | |||
| — | release_howto [2023/06/04 11:32] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | * Der Kernel soll beim booten die email-Adresse info@freifunk-bielefeld.de anzeigen anstatt user@hostname vom eigenen System. Dafür müssen zwei Wrapper unter / | ||
| + | |||
| + | / | ||
| + | |||
| + | #!/bin/sh | ||
| + | | ||
| + | # username to return to the kernel build scripts/ | ||
| + | LINUX_COMPILE_BY=" | ||
| + | | ||
| + | # get the current path and remove the directory containing this script so the real | ||
| + | # command can be called and its output filtered | ||
| + | DIRNAME=$(dirname $0) | ||
| + | NEWPATH=$(IFS=:; | ||
| + | | ||
| + | # calling process ID, required to see if it is the kernel build calling or not | ||
| + | if ps -p $PPID -o args= | grep -q mkcompile_h; | ||
| + | echo $LINUX_COMPILE_BY | ||
| + | exit 0 | ||
| + | fi | ||
| + | | ||
| + | # execute the system command otherwise | ||
| + | PATH=$NEWPATH whoami " | ||
| + | |||
| + | / | ||
| + | |||
| + | #!/bin/sh | ||
| + | | ||
| + | # username to return to the kernel build scripts/ | ||
| + | LINUX_COMPILE_HOST=" | ||
| + | | ||
| + | # get the current path and remove the directory containing this script so the real | ||
| + | # command can be called and its output filtered | ||
| + | DIRNAME=$(dirname $0) | ||
| + | NEWPATH=$(IFS=:; | ||
| + | | ||
| + | # calling process ID, required to see if it is the kernel build calling or not | ||
| + | if ps -p $PPID -o args= | grep -q mkcompile_h; | ||
| + | echo $LINUX_COMPILE_HOST | ||
| + | exit 0 | ||
| + | fi | ||
| + | | ||
| + | # execute the system command otherwise | ||
| + | PATH=$NEWPATH hostname | ||
| + | | ||
| + | Zuletzt noch beide Dateien ausführbar machen: | ||
| + | |||
| + | chmod a+x / | ||
| + | chmod a+x / | ||
| + | | ||
| + | Jetzt das OpenWRT-Image bauen. :-) | ||
| + | |||
| + | |||
| + | Quelle: http:// | ||