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