Bugfix: Support command delivery to syscall tizen_2.1 2.1b_release accepted/tizen_2.1/20130425.040607 submit/tizen_2.1/20130424.230036
authorSangjung Woo <sangjung.woo@samsung.com>
Fri, 22 Mar 2013 08:16:45 +0000 (17:16 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Fri, 22 Mar 2013 08:16:45 +0000 (17:16 +0900)
commit507dafd87342934b71631fe0fd733aef3c7ad258
treea7da48a449580706807ede9ea65199bf0784f345
parent71ce08f6692dcb7ef7bffb11b8ba68ad11ae8d4f
Bugfix: Support command delivery to syscall

This work is for bug fixing TDIS-2302: "Reboot download" can't reload to
download mode

Previous sysvinit supports special command passing mechanism when
calling reboot, shutdown, halt. For example, when executing 'reboot
download', the 'download' command is delivered to reboot syscall so
system automatically enter the download mode after rebooting without any
hand action. (Press 'power' and 'volume down' button simultaneously)

However in systemd, when executing 'reboot/halt/shutdown', only realtime
signal is passed through '/dev/initctl'. So systemd daemon can't get the
command to execute.

In order to solve this issue, the command to be delivered is temporally
written to tmp file and shutdown service of systemd will read the
command if existing.

Change-Id: Ib833ced3059d900ef1c001cf1715ecf1b32ac3f0
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
packaging/systemd_param.patch [new file with mode: 0644]
packaging/sysvinit.spec