INSTALL(FILES system-server.conf DESTINATION /etc/dbus-1/system.d)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/packaging/system-server.rule DESTINATION /opt/etc/smack/accesses.d)
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/mmc-smack-label DESTINATION bin)
+INSTALL(PROGRAMS shutdown.sh DESTINATION /usr/lib/system-server)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/system-server.service DESTINATION /usr/lib/systemd/system)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/system-server.socket DESTINATION /usr/lib/systemd/system)
+* Thu Aug 22 2013 Maciej Wereski <m.wereski@partner.samsung.com> accepted/tizen/20130710.221248@1177917
+- Move rc.shutdown from system-plugin-slp
+
* Sun Aug 25 2013 Chengwei Yang <chengwei.yang@intel.com>
- Remove debian packaging stuff
%config %{_sysconfdir}/dbus-1/system.d/system-server.conf
%{_bindir}/system_server
/opt/etc/smack/accesses.d/system-server.rule
+/usr/lib/system-server/shutdown.sh
%if 0%{?simulator}
%exclude %{_bindir}/restart
%else
int main(int argc, char *argv[])
{
- system("/etc/rc.d/rc.shutdown &");
+ system("/usr/lib/system-server/shutdown.sh &");
sleep(1);
sync();
reboot(RB_AUTOBOOT);
--- /dev/null
+#!/bin/sh
+
+export DISPLAY=:0
+killall power_manager
+killall -9 udevd
+#killall -9 system_server
+killall -9 xinit
+
+rm -rf /tmp/vip/*
+
+echo "Run Shutdown animation..."
+nice -n -15 /usr/bin/boot-animation --offmsg " " --clear &
+sleep 1
+
+echo "Stopping indicator..."
+killall -9 indicator
+
+# factory resetting...
+# flag set by factory-reset.sh
+if [ -f /opt/.factoryreset ]; then
+ /usr/bin/run-factory-reset.sh
+fi
+
{
int ret;
- system("/etc/rc.d/rc.shutdown &");
+ system("/usr/lib/system-server/shutdown.sh &");
sync();
gettimeofday(&tv_start_poweroff, NULL);
heynoti_publish(POWEROFF_NOTI_NAME);
pm_change_state(LCD_NORMAL);
- system("/etc/rc.d/rc.shutdown &");
+ system("/usr/lib/system-server/shutdown.sh &");
sync();
gettimeofday(&tv_start_poweroff, NULL);