d252e574ccc7d0d52d34882db8f6cbf2f2c80590
[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 rsyslog
14 ssh
15 atd
16 cron
17 rc.local
18 '
19
20 # start debian services
21 for service in $services
22 do
23         /usr/sbin/service "$service" start
24 done
25
26 # sleep forever so android init doesn't keep running us
27 while true
28 do
29         sleep 86400
30 done