mirror of
https://github.com/fhem/fhem-mirror.git
synced 2024-11-22 16:09:49 +00:00
64b231f357
git-svn-id: https://svn.fhem.de/fhem/trunk@1089 2b470e98-0d58-463d-a4d8-8e2adae1ed80
27 lines
531 B
Bash
Executable File
27 lines
531 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# On the Fritzbox 7270 V1/V2 with missing df replace home with the hardcoded
|
|
# path.
|
|
root=`df | sed -n -e '/ftp\//s/.*ftp\///p'`
|
|
home=/var/InternerSpeicher/$root/fhem
|
|
|
|
cd $home
|
|
|
|
trap "" SIGHUP
|
|
modprobe kernel/cdc_acm
|
|
modprobe ftdi_sio
|
|
sleep 2
|
|
|
|
ln -sf $home/FHEM/fhemcmd.sh /var/fhemcmd
|
|
|
|
PATH=$home:$PATH
|
|
export PATH
|
|
|
|
export LD_LIBRARY_PATH=$home/lib
|
|
export PERL5LIB=$home/lib/perl:$home/lib/perl/arch
|
|
|
|
#export PERL5LIB=$home/lib/perl5/5.10
|
|
#stty -echo -echok -echoke -echoe -echonl < /dev/ttyACM0
|
|
|
|
perl fhem.pl fhem.cfg
|