From 5f053827bf56e3fedca8f7edb9f42dc2687e86a4 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 10 Feb 2013 18:15:46 +0000 Subject: [PATCH] Optional second startup script for those who cannot delete lines in a file git-svn-id: https://svn.fhem.de/fhem/trunk@2683 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/FB7390/makeimage | 2 +- fhem/contrib/FB7390/startfhemAsRoot | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 fhem/contrib/FB7390/startfhemAsRoot diff --git a/fhem/contrib/FB7390/makeimage b/fhem/contrib/FB7390/makeimage index d3be898c3..8ee6362a1 100755 --- a/fhem/contrib/FB7390/makeimage +++ b/fhem/contrib/FB7390/makeimage @@ -17,7 +17,7 @@ mkdir fhem/FHEM fhem/docs cd .. cp install var -cp startfhem var/fhem +cp startfhem startfhemAsRoot var/fhem cp fhemcmd.sh var/fhem/FHEM diff --git a/fhem/contrib/FB7390/startfhemAsRoot b/fhem/contrib/FB7390/startfhemAsRoot new file mode 100755 index 000000000..8ae62a42b --- /dev/null +++ b/fhem/contrib/FB7390/startfhemAsRoot @@ -0,0 +1,23 @@ +#!/bin/sh + +home=/var/InternerSpeicher/fhem + +cd $home + +trap "" SIGHUP +modprobe 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/perl5/site_perl/5.12.2/mips-linux:$home/lib/perl5/site_perl/5.12.2:$home/lib/perl5/5.12.2/mips-linux:$home/lib/perl5/5.12.2 + +# add user fhem with uid of boxusr80/boxusr99 (== ftpuser) +# Comment/delete everything between START and END to run FHEM as root + +perl fhem.pl fhem.cfg