use bootlogs service, so we get our motd set
[android-debian.git] / debian / debian-init
1 #!/bin/sh
2
3 # initialise debian system from outside the chroot
4 # this script gets called from the android init system
5
6 # first, set our PATH correctly
7 # android uses a retarded PATH
8 export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
9
10 # what services do we want to start?
11 services='
12 hostname.sh
13 bootlogs
14 rsyslog
15 ssh
16 atd
17 cron
18 rc.local
19 '
20
21 # start debian services
22 for service in $services
23 do
24         /usr/sbin/service "$service" start
25 done
26
27 # sleep forever so android init doesn't keep running us
28 while true
29 do
30         sleep 86400
31 done