Hier sind meine Scripts, wichtig ist das die Plugins vor dem Library strippen in m Verzeichnis lib\tuxbox\plugins\ liegen. Ist wahrscheinlich nicht die feine englische Art, aber da ich mich mit make nicht so gut auskenne, behelfe ich mich halt so (am Beispiel hddtemp.so und irgendeinprogramm):starfighter007 hat geschrieben:so ein mist!
wieso hat er nicht das image erstellt???
sagmal, wie kann man den plugins wie sysinfo oder ähnlichem vor dem erstellen des images einbauen?
geht das wieder nur mit oldmake oder was?
gruß
root-neutrino-squashfs-local.sh
Code: Alles auswählen
#!/bin/sh
echo "-----------------------------------------------------------------------------"
echo "---------------START root-neutrino-squashfs CUSTOMIZION ---------------------"
echo "-----------------------------------------------------------------------------"
#read
flashprefix=$1
buildprefix=$2
newroot=$flashprefix/root-neutrino-squashfs
myfiles=/home/guenther/tux/custom
cdkroot=$flashprefix/../cdkroot
#----------------------------------------
#------- Mountverzeichnisse erstellen
#----------------------------------------
mkdir $newroot/mnt/filme
mkdir $newroot/mnt/aufnahme
mkdir $newroot/mnt/musik
mkdir $newroot/mnt/bilder
mkdir $newroot/mnt/plugins
mkdir $newroot/mnt/tmp1
mkdir $newroot/mnt/tmp2
mkdir $newroot/mnt/mmc
#----------------------------------------
#-------- alles Kopieren
#----------------------------------------
cp -r $myfiles/etc/* $newroot/etc
cp -r $myfiles/bin/* $newroot/bin
cp -r $myfiles/sbin/* $newroot/sbin
#----------------------------------------
#-------- zusaetzliche Tools
#----------------------------------------
cp -r $cdkroot/bin/fbshot $newroot/bin
cp -r $cdkroot/bin/cdkVcInfo $newroot/bin
cp -r $cdkroot/bin/dboxshot $newroot/bin
cp -r $cdkroot/sbin/fcp $newroot/sbin
#----------------------------------------
#-------- sonstiges loeschen
#----------------------------------------
rm -r $newroot/lib/tuxbox/plugins/lcdcirc.*
rm -r $newroot/lib/tuxbox/plugins/outdoor.*
#----------------------------------------
#-------- alte httpd's loeschen
#----------------------------------------
rm -r $newroot/share/tuxbox/neutrino/httpd-alt2
rm -r $newroot/share/tuxbox/neutrino/httpd
#----------------------------------------
#-------- remove other files
#----------------------------------------
echo remove $newroot/../root-neutrino-squashfs/lib/tuxbox/plugins/irgendeinprogramm.so
rm -f $newroot/../root-neutrino-squashfs/lib/tuxbox/plugins/irgendeinprogramm.so
#----------------------------------------
# ---- Nukes all game plugins, as well as all locale files not listed in LANGUAGES
#----------------------------------------
LANGUAGES="deutsch english"
#for f in $newroot/lib/tuxbox/plugins/*.cfg; do
# grep 'type=1' $f>/dev/null && rm -f $newroot/lib/tuxbox/plugins/`basename $f .cfg`.*
#done
for f in $newroot/share/tuxbox/neutrino/locale/*; do
(echo $LANGUAGES | grep -v `basename $f .locale` >/dev/null) && rm -f $f
done
echo "-----------------------------------------------------------------------------"
echo "---------------root-neutrino-squashfs CUSTOMIZION COMPLETE-------------------"
echo "-----------------------------------------------------------------------------"
Code: Alles auswählen
#!/bin/sh
echo "-----------------------------------------------------------------------------"
echo "-------------------------START root-neutrino CUSTOMIZION --------------------"
echo "-----------------------------------------------------------------------------"
#read
flashprefix=$1
buildprefix=$2
newroot=$flashprefix/root-neutrino
myfiles=/home/guenther/tux/custom
cdkroot=$flashprefix/../cdkroot
#----------------------------------------
#--------
#----------------------------------------
echo "cp -r $myfiles/lib/* $newroot/lib"
cp -r $myfiles/lib/* $newroot/lib
echo "-----------------------------------------------------------------------------"
echo "--------------------root-neutrino CUSTOMIZION COMPLETE-----------------------"
echo "-----------------------------------------------------------------------------"
Code: Alles auswählen
#!/bin/sh
echo "-----------------------------------------------------------------------------"
echo "----------------------START var-neutrino CUSTOMIZION-------------------------"
echo "-----------------------------------------------------------------------------"
#read
flashprefix=$1
buildprefix=$2
newroot=$flashprefix/var-neutrino
myfiles=/home/guenther/tux/custom
#----------------------------------------
#-------- copy var folder
#----------------------------------------
cp -r $myfiles/var/* $newroot
echo "-----------------------------------------------------------------------------"
echo "---------------------var-neutrino CUSTOMIZION COMPLETE-----------------------"
echo "-----------------------------------------------------------------------------"
Code: Alles auswählen
tux\
audio\ <- z.b. mein Audioprojekt
cvs\ <- hier kommt das cvs rein
cdk\ <- hier kommen zusätzlich zum cvs noch die obigen scripts rein
apps\
....
image\ <- das ist das Imageverzeichnis
cdk\
cdkflash\
...
head\ <- Wie audio aber nur für ungeändertes HEAD
custom\ <- mein newmake custom Ordner
bin\ <- alles was in das Image unter bin soll
irgendeinprogramm
lib\ <- alles was im Image unter lib soll
tuxbox\plugins\
hddtemp.so <- hier alle plugins rein
irgendeinprogramm.so <- und binaries zum strippen
sbin\
plugins\
var\
ect\
init.d\
start_neutrino <- hier die angepaßte start_neutrino (falls gewünscht)
network\
interfaces <- IP-Definition (falls gewünscht)
tuxbox\
boot\ <- Bootbild
config <- alle neutrino konfig files (falls gewünscht)
zapit\ <- hier kommen bouquet und services.xml rein
plugins\ <- hier alle plugins rein, welche im var bereich liegen sollen (falls es nicht funktioniert, muss es zum library strippen auch in root/lib rein, und kann dann gelöscht werden, wie bei irgendeinprogramm
ucodes\ <- hier kommen die ucodes rein
Ich hoffe das hilft weiter ..
Günther