Lines 236-241
Link Here
|
236 |
// real shutdown? then lets rock.. |
236 |
// real shutdown? then lets rock.. |
237 |
#ifdef USE_MINIT |
237 |
#ifdef USE_MINIT |
238 |
minit_shutdown(cfg_downlevel); |
238 |
minit_shutdown(cfg_downlevel); |
|
|
239 |
exec_cmd("/etc/minit/halt/run", (char *) 0); |
239 |
if (cfg_minitonly) return 0; |
240 |
if (cfg_minitonly) return 0; |
240 |
#endif |
241 |
#endif |
241 |
|
242 |
|
Lines 258-264
Link Here
|
258 |
sync(); |
259 |
sync(); |
259 |
|
260 |
|
260 |
exec_cmd("/sbin/swapoff", "swapoff", "-a", (char *) 0); |
261 |
exec_cmd("/sbin/swapoff", "swapoff", "-a", (char *) 0); |
261 |
exec_cmd("/bin/umount", "umount", "-a", (char *) 0); |
262 |
exec_cmd("/bin/umount", "umount", "-a", "-r", (char *) 0); |
262 |
exec_cmd("/bin/mount", "mount", "-o", "remount,ro", "/", (char *) 0); |
263 |
exec_cmd("/bin/mount", "mount", "-o", "remount,ro", "/", (char *) 0); |
263 |
|
264 |
|
264 |
sync(); |
265 |
sync(); |