Extract functions

This commit is contained in:
topjohnwu
2017-08-11 11:43:45 +08:00
parent 8d431b6762
commit 2a7e2c70b5
3 changed files with 44 additions and 43 deletions

View File

@@ -409,11 +409,3 @@ int switch_mnt_ns(int pid) {
close(fd);
return ret;
}
void link_busybox() {
mkdir_p(BBPATH, 0755);
char *const command[] = { "busybox", "--install", "-s", BBPATH, NULL};
int pid = run_command(0, NULL, NULL, BBBIN, command);
if (pid != -1)
waitpid(pid, NULL, 0);
}