Project

General

Profile

Actions

Bug #111

closed

/sbin/reboot doesn't run /etc/init.d/rcK

Added by Hammel almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
root file system
Target version:
Start date:
15 May 2012
Due date:
% Done:

100%

Estimated time:
Severity:
Critical

Description

My inittab has this:

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
::ctrlaltdel:/etc/init.d/rcK
::ctrlaltdel:/bin/umount -a -r
::ctrlaltdel:/sbin/swapoff -a

But the rcK script, which runs the "stop" function of all init scripts, is not getting run when /sbin/reboot is called.

To get around this I can do the following:
  • Create a postbuild script in Buildroot
  • If /sbin/reboot.bin does not exist but /sbin/reboot does,

cp /sbin/reboot /sbin/reboot.bin
create /sbin/reboot.sh to call rcK && /sbin/reboot.bin
ln -s /sbin/reboot.sh /sbin/reboot

Actions

Also available in: Atom PDF