View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#5
Sorry for late reply, but I needed to check a few things and tried to remember, what I had done.
I remember to have checked some sources, but to no avail (two? years ago?). And found that a simple one-liner '/sbin/initctl start sshd' in one of my customization init scripts did the trick. One negative downside is that sshd status ui does show 'status off' after reboot, but actually it's status is on (something I could/can live with).


Code:
description "starting my own mounts and swaps"

author "peterleinchen"

#start on MOUNTS_OK
start on started ke-recv
stop on starting shutdown

console output
env logFile=/dev/null
#env logFile=/home/user/.out_mystart


pre-start script

if [ -f $logFile.3 ]
then
  rm $logFile.3
fi
  if [ -f $logFile.2 ]
  then
    mv $logFile.2 $logFile.3
  fi
    if [ -f $logFile.1 ]
    then
      mv $logFile.1 $logFile.2
    fi
      if [ -f $logFile ]
      then
        mv $logFile $logFile.1
      fi

echo prestart `date` >> $logFile

# mmc(s) should be mounted after ke-recv has started, but currently
# started notification seems to be emitted before it's actually ready.
# this is a temporary workaround, we should fix this in ke-recv or c-r
# properly.
# peterleinchen:
#	sleep 4
# under heavy startup conditions (lots of daemons installed)
# our N900 (ke-recv daemon) may/will need more than 4s, so I used 30s
##	sleep 30
# but now I will check for eMMC and/or SD to be mounted
	sleep 4
	
end script


script

echo start `date` >> $logFile

  # start up ssh server
echo start up SSH server >> $logFile
  initctl start sshd
  
end script
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-09-28 at 19:11. Reason: added script (partly)
 

The Following User Says Thank You to peterleinchen For This Useful Post: