Il giorno lun 30 ago 2021 alle ore 20:24 Angelo Dureghello <
[email protected]> ha scritto:

> Hi Roberto,
>
> On 30/08/21 7:43 PM, Roberto A. Foglietta wrote:
> > Hi Angelo,
> >
> >   try these two, they do halt and reboot by-passing the busybox
> >
> >
> https://github.com/robang74/tinycore-editor/blob/main/tinycore/changes/shutdown.sh
> >
> https://github.com/robang74/tinycore-editor/blob/main/tinycore/changes/reboot.sh
> >
>
> thanks a lot, your scripts are working and a good workaround
> for now.
>

If you like to use them in production, I suggest you replace 'sleep 3' with
'sync'. You have to investigate your kernel, IMHO.
I use these scripts for emergency halt/reboot and in my case sync could
lock the flow but in your case would be safe to call it.

Best regards,
-- 
Roberto A. Foglietta
+39.349.33.30.697
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to