Little bug in tinyhalt causing it not to recognize when called as reboot.
This commit is contained in:
parent
3172b4d0ad
commit
9f3cc391a2
@ -25,7 +25,7 @@ int main(int argc, char **argv)
|
|||||||
execv("/usr/bin/halt", argv);
|
execv("/usr/bin/halt", argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((prog = strrchr(*argv,'/')) == nil) prog= argv[0]; else argv++;
|
if ((prog = strrchr(*argv,'/')) == nil) prog= argv[0]; else prog++;
|
||||||
|
|
||||||
sleep(2); /* Not too fast. */
|
sleep(2); /* Not too fast. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user