emmi-Firmware]] ab [[Firmware 1.50.6.lemmi]].
== Script Dateien ==
=== /sbin/lemmi-setup ===
Dieses Script scanned die Datei '''/[[/var|var]]/[[/var/etc|etc]]/le...
entfernt (für unsere Windows-Freunde).
Wird das Script [[lemmi-setup]] mit dem Parameter 'setup' aufgeru... geschrieben.
Dieses geschieht z.B. durch das Boot-Script [[/etc/rc]].
* Weitere Details: [[/sbin/lemmi-se
|Lemmis Firmware]] unterstützt 7 Hooks:
=== Boot-Script rc.local ===
Im Boot-Script '[[/etc/rc]]' sind vier Hooks für eigene Modifikationen eingebaut:
* Kurz n... Existiert diese Datei, dann wird sie als normales Script aufgerufen.
* Am Ende von [[/etc/rc]] wird die... tings.txt|lemmi-settings]] setzen.
=== Shutdown-Script halt ===
Im Script '[[/etc/rc.d/halt]]' sind zwe
urde das Programm [[/sbin/mount.smbfs]] durch ein Script ausgetauscht. Dieses Script 'biegt' dann den SMB-mount zu einem NFS-mount um. Es existieren nun zwei Verf
* die Option hinter [http://www.imagemagick.org/script/command-line-options.php?#crop -crop] gibt an, wa... te nach unten.
* '''[http://www.imagemagick.org/script/command-line-options.php?#repage +repage]''' mit ... rde mit der Option '''[http://www.imagemagick.org/script/command-line-options.php?#gravity -gravity]''' un... mageMagick die Option
[http://www.imagemagick.org/script/command-line-options.php?#auto-orient -auto-orien
om/linux/shell_programming.html]]
=== bash shell script: ===
wichtig, dass am Anfang:
<code>
#!/bin/bas... /code>
Datei zeile für zeile lesen:
<code bash>
script <datei
while [ true ]
do
read X #read
exit $E_NOARGS
# Returns 65 as exit status of script (error code).
fi
filename=$1
if [ ! -f "$file...
# May substitute 'less' if desired.
exit $? # Script returns exit status of pipe.
# Actually "exit $?" is unnecessary, as the script will, in any case,
#+ return the exit status of t
guments are given. This is shown in the following script:
#!/bin/bash
export INFILE=${1-"infile"}
export... o a variety of things. For example, the following script changes the extension of all .html files to .htm.... on-interactive shell, this will abort the current script. In an interactive shell, this will just print th... guments are given. This is shown in the following script:
<code>#!/bin/bash
export INFILE=${1-"infile"}