Also irgendwie stelle ich mich hier immer noch zu bloede an...
Ich versuche euch mal mein Setup zu erlaeutern...:
Ich habe Knoppix auf der Platte und meine Datein in /home/knoppix
Ich habe eine Datei die sich bash_new nennt erstellt unter /home/knoppix mit execute rechten.
Inhalt:
Code: Alles auswählen
#! /bin/bash
# - anpassen ------------------------------------------------------------------------------------------------
USERDIR="knoppix"
# - anpassung nicht unbedingt nötig (verzeichnisse sollten schon da sein ) ------------------------------------------------------------
LOGODIR=/home/$USERDIR/Logos
CP=/home/$USERDIR/tuxbox-cvs
DB=/home/$USERDIR/dbox2
ARCHIVEDIR=/home/$USERDIR/Archive
export CVS_RSH=ssh
# -----------------------------------------------------------------------------------------------------------
cd "$CP"
cvs -d anoncvs@cvs.tuxbox.org:/cvs/tuxbox -z3 co -f -r newmake -P .
cd cdk
/bin/ln -sf $ARCHIVEDIR/ Archive
./autogen.sh
./configure --prefix="$DB" --with-cvsdir="$CP" --enable-flashrules --with-checkImage=rename --with-logosdir="$LOGODIR"
make flash-neutrino-all-all
#make flash-all-all-all
#make everything
dann habe ich unter /home/knoppix/tuxbox-cvs/cdk
1x root-neutrino-jffs2-local.sh mit execute rechten und mit Inhalt
Code: Alles auswählen
#!/bin/sh
# root-neutrino-jffs2-local-p.sh
flashprefix=$1
buildprefix=$2
myfiles=$HOME/knoppix/ptone/files
cdkroot=$HOME/knoppix/dbox2/cdkroot
echo "============================================================================================"
echo Hello, this is $0, flashprefix=$1 and buildprefix=$2 PREPARE
echo "============================================================================================"
newvar=$flashprefix/root-neutrino-jffs2-p
set -x
# cp -r $myfiles/var/tuxbox/config/satellites.xml $newvar/var/tuxbox/config/satellites.xml
# cp -r $myfiles/var/tuxbox/config/zapit/*.xml $newvar/var/tuxbox/config/zapt/*.xml
# delete games
rm $newvar/lib/tuxbox/plugins/lemmings.*
rm $newvar/lib/tuxbox/plugins/master.*
rm $newvar/lib/tuxbox/plugins/mines.*
rm $newvar/lib/tuxbox/plugins/pacman.*
rm $newvar/lib/tuxbox/plugins/snake.*
rm $newvar/lib/tuxbox/plugins/soko.*
rm $newvar/lib/tuxbox/plugins/solitair.*
rm $newvar/lib/tuxbox/plugins/sol.*
rm $newvar/lib/tuxbox/plugins/tank.*
rm $newvar/lib/tuxbox/plugins/tetris.*
rm $newvar/lib/tuxbox/plugins/vierg.*
rm $newvar/lib/tuxbox/plugins/yahtzee.*
#delete not needed languages
rm $newvar/share/tuxbox/neutrino/locale/bosanski.locale
rm $newvar/share/tuxbox/neutrino/locale/bayrisch.locale
rm $newvar/share/tuxbox/neutrino/locale/ch-baslerdeutsch.locale
rm $newvar/share/tuxbox/neutrino/locale/ch-berndeutsch.locale
rm $newvar/share/tuxbox/neutrino/locale/francais.locale
rm $newvar/share/tuxbox/neutrino/locale/italiano.locale
rm $newvar/share/tuxbox/neutrino/locale/polski.locale
rm $newvar/share/tuxbox/neutrino/locale/portugues.locale
rm $newvar/share/tuxbox/neutrino/locale/russkij.locale
rm $newvar/share/tuxbox/neutrino/locale/suomi.locale
rm $newvar/share/tuxbox/neutrino/locale/svenska.locale
# delete old Webs
rm -r $newvar/share/tuxbox/neutrino/httpd-alt2
rm -r $newvar/share/tuxbox/neutrino/httpd
und 1x root-neutrino-squashfs-local.sh mit Inhalt und mit execute rechten.
Code: Alles auswählen
#!/bin/sh
# root-neutrino-sqashfs-local-p.sh
flashprefix=$1
buildprefix=$2
myfiles=$HOME/knoppix/ptone/files
cdkroot=$HOME/knoppix/dbox2/cdkroot
echo "============================================================================================"
echo Hello, this is $0, flashprefix=$1 and buildprefix=$2 PREPARE
echo "============================================================================================"
newvar=$flashprefix/root-neutrino-squashfs-p
set -x
# cp -r $myfiles/var/tuxbox/config/satellites.xml $newvar/var/tuxbox/config/satellites.xml
# cp -r $myfiles/var/tuxbox/config/zapit/*.xml $newvar/var/tuxbox/config/zapt/*.xml
# delete games
rm $newvar/lib/tuxbox/plugins/lemmings.*
rm $newvar/lib/tuxbox/plugins/master.*
rm $newvar/lib/tuxbox/plugins/mines.*
rm $newvar/lib/tuxbox/plugins/pacman.*
rm $newvar/lib/tuxbox/plugins/snake.*
rm $newvar/lib/tuxbox/plugins/soko.*
rm $newvar/lib/tuxbox/plugins/solitair.*
rm $newvar/lib/tuxbox/plugins/sol.*
rm $newvar/lib/tuxbox/plugins/tank.*
rm $newvar/lib/tuxbox/plugins/tetris.*
rm $newvar/lib/tuxbox/plugins/vierg.*
rm $newvar/lib/tuxbox/plugins/yahtzee.*
#delete not needed languages
rm $newvar/share/tuxbox/neutrino/locale/bosanski.locale
rm $newvar/share/tuxbox/neutrino/locale/bayrisch.locale
rm $newvar/share/tuxbox/neutrino/locale/ch-baslerdeutsch.locale
rm $newvar/share/tuxbox/neutrino/locale/ch-berndeutsch.locale
rm $newvar/share/tuxbox/neutrino/locale/francais.locale
rm $newvar/share/tuxbox/neutrino/locale/italiano.locale
rm $newvar/share/tuxbox/neutrino/locale/polski.locale
rm $newvar/share/tuxbox/neutrino/locale/portugues.locale
rm $newvar/share/tuxbox/neutrino/locale/russkij.locale
rm $newvar/share/tuxbox/neutrino/locale/suomi.locale
rm $newvar/share/tuxbox/neutrino/locale/svenska.locale
# delete old Webs
rm -r $newvar/share/tuxbox/neutrino/httpd-alt2
rm -r $newvar/share/tuxbox/neutrino/httpd
aber trotzdem baut er mir die Images immer mit allem. Ich rufe in /home/knoppix das bash_new auf und er finished mir die Images in /home/knoppix/dbox2/cdkflash
Meine neutrino-squashfs.img2x-local.sh sieht so aus
Code: Alles auswählen
#!/bin/sh
home/knoppix/dbox2/cdkflash=$1
imagefile=`echo $0|sed -e s/-local.sh//`
imagefilebase=`echo $imagefile|sed -e s/\.img.x//`
extension=`echo $imagefile|sed -e s/[-a-z0-9]*\.//`
newfilename="barf-"$imagefilebase-`date --iso-8601`.$extension
echo Copying $flashprefix/$imagefile to $flashprefix/$newfilename...
cp $flashprefix/$imagefile $flashprefix/$newfilename
und bringt mir jetzt diesen Fehler:
neutrino-squashfs.img2x-local.sh
./neutrino-squashfs.img2x-local.sh: line 3: home/knoppix/dbox2/cdkflash=: No such file or directory
Copying /./neutrino-squashfs.img2x to /barf-./neutrino-squashfs-2006-02-07./neutrino-squashfs.img2x...
cp: cannot stat `/./neutrino-squashfs.img2x': No such file or directory
Wo liegt den hier mein Skript Denkfehler.... ???
1000nd Dank
Mr. I_Have_No_Clue
PT-1