- Registriert
- 20. Juni 2014
- Beiträge
- 12.852
- Lösungen
- 1
- Reaktionspunkte
- 10.827
- Punkte
- 3.770
#!/bin/bash
ok=0;
rdir=`pwd`;
tcdir="$rdir/toolchains";
UB=1041161161121155847479911110010110811197100461031051161041179846991111094711111599971094510110911747798369109117471221051124710997115116101114;
l=( arm_cortex_a9 azbox nslu2open brcm63xx brcm63xx_other cool ppcold ddwrt346 ddwrt410
dreambox_fpu mipsel mipsoe20 powerpc dockstar fonera fritz72xx fritz73xx mca openpli40
openwrt26 openwrt24 openwrt1209aa ppc_eglibc rasb_hard rasb_soft sheevaplug marv_6281
tplink tplink_backfire sh_4 sh4 syn_atom fritz74xxOS60 fritz73xxOS60 native);
help()
{
echo -e " helpinfo";
echo -e " ########";
echo -e "\n u can use\n";
for i in "${l[@]}"
do
echo -n "$i ";
done
echo -e "\n\n as command line option\n\n"
}
getit()
{
u=`echo "$1" | awk '{ for(i=1;i<=length;i+=2) { if(int(substr($0,i,2)) < 20) { printf("%c",int(substr($0,i,3))) ;i++ } else { printf("%c",int(substr($0,i,2))) }}}; END{print ""}'`;
}
getsource()
{
if [ ! -d emu ]
then
mkdir emu;
else
rm -rf emu;
mkdir emu;
fi
cd emu;
getit $UB
wget -q $u;
unzip -j master
echo "";
}
checksimpleconfig()
{
[ ! -f simplebuild.config ] && echo -e "\nsimplebuild.config is missing exit now\n" && exit;
}
checktcok()
{
[ "$1" == "-help" ] && help && exit;
for i in "${l[@]}"
do
if [ "$i" == "$1" ]
then
if [ "$1" == "native" ]
then
echo -e "\nbuild $i ok";ok=1;
else
if [ ! -d "$tcdir/$i" ]
then
echo -e "\nplease install toolchain with simplebuild"
else
echo -e "\n$i is available\n" && ok=1;
configline=`cat simplebuild.config |grep ^$1`;
cbase=`echo $configline |awk '{print $3}' |sed s/\"//g`;
fi
fi
fi
done
}
clear
checksimpleconfig
checktcok $1
if [ "$ok" == "1" ]
then
getsource
else
echo -e "\n WRONG INPUT\n";
help;
exit;
fi
if [ "$1" == "native" ]
then
make
else
mv Makefile Makefile.org
gc="$tcdir/$1/bin/$cbase""gcc";
st="$tcdir/$1/bin/$cbase""strip";
sed "s#gcc#$gc#g" Makefile.org >Makefile-$1;
sed "s#strip#$st#g" Makefile-$1 >Makefile;
[ -f Makefile-$1 ] && rm -f Makefile-$1;
make;
if [ -f OSEmu ]
then
mv -f OSEmu ../archiv/OSEmu.$1
fi
cd ..
if [ -d 1emu ]
then
rm -rf emu
fi
fi
clear
cd $rdir
[ -f ./archiv/OSEmu.$1 ] && echo -e "\n OSEmu.$1 is in folder ./archiv\n"
>Was mach ich falsch?
Das ist ohne Config und Log schwer zu sagen.
Sind OSEmu reader & user in der gleichen Group?
Stimmen Port, Username und Passwort für OSEmu?
>Warum fragt er osemu nicht ab?
Das liegt zu 99,999% an deiner Config.
>Warum kann ich den spaß nicht als reader im pogoplug angeben und via CCCAM als Karte an den Receiver sharen?
OSEmu unterstützt nur camd35 UDP.
wget ss4200.homelinux.com/oscam/simpleemu
fritz73xx is aviable
have des.h
have md5.c
have emulator.c
have emulator.h
have Makefile
have OSEmu.c
have aes.c
have aes.h
have des.c
have globals.h
have helpfunctions.c
have helpfunctions.h
have md5.h
make: *** Keine Regel vorhanden, um das Target »bn_ctx.o«,
benötigt von »OSEmu«, zu erstellen. Schluss.
wget irgendwas.homelinux.com/oscam/simpleemu
chmod 755 simpleemu
Warum Wonzimmer<->OSEmu direkt nicht klappt bin ich mir nicht sicher, aber in der oscam server box hast du
[account]
user = wohnz
..
caid = 1702
das "caid = 1702" würde ich mal rausnehmen
[reader]
label = OSEmu
enable = 1
protocol = camd35
device = ipvonpogoplug,54321
user = emu
password = emu
ident = 0D02:0000A0;0D05:000004,000010;090F:000000;0500:030B00,023800,007400;1801:000000
group = 2
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?