Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
576d92d6
Commit
576d92d6
authored
Dec 22, 2002
by
Rusty Russell
Committed by
Linus Torvalds
Dec 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] honour init= bootparm
Restore the accidentally dropped code to handle "init=xxx"
parent
4d59f610
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
init/main.c
init/main.c
+16
-0
No files found.
init/main.c
View file @
576d92d6
...
...
@@ -259,6 +259,22 @@ static int __init unknown_bootoption(char *param, char *val)
return
0
;
}
static
int
__init
init_setup
(
char
*
str
)
{
unsigned
int
i
;
execute_command
=
str
;
/* In case LILO is going to boot us with default command line,
* it prepends "auto" before the whole cmdline which makes
* the shell think it should execute a script with such name.
* So we ignore all arguments entered _before_ init=... [MJ]
*/
for
(
i
=
1
;
i
<
MAX_INIT_ARGS
;
i
++
)
argv_init
[
i
]
=
NULL
;
return
1
;
}
__setup
(
"init="
,
init_setup
);
extern
void
setup_arch
(
char
**
);
extern
void
cpu_idle
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment