Merge rc.shutdown 'system-plugin-slp' into emulator
[platform/adaptation/emulator/system-plugin-emulator.git] / filesystem / etc / rc.d / rc.shutdown
1 #!/bin/sh
2
3 export DISPLAY=:0
4 killall power_manager
5 killall -9 udevd
6 #killall -9 system_server
7 killall -9 xinit
8
9 rm -rf /tmp/vip/*                                                               
10 rm -rf /tmp/permanent/* 
11
12 echo "nfc sdkMsg flush..."
13 echo > /opt/nfc/sdkMsg
14
15 echo "Run Shutdown animation..."
16 nice -n -15 /usr/bin/boot-animation --offmsg " " --clear &
17 sleep 1
18
19 echo "Stopping indicator..."
20 killall -9 indicator
21
22 # factory resetting...
23 # flag set by factory-reset.sh
24 if [ -f /opt/.factoryreset ]; then
25         /usr/bin/run-factory-reset.sh
26 fi
27
28