Re: shutdown instead of reboot after install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi,
> 
> I've been playing with the anaconda package some to try and make the installe
> r
> shutdown or halt instead of reboot after the install process, but I'm having
> some trouble, and hoping someone might have some suggestions for me.
> 
> I've changed this call towards the  end of the anaconda-7.3/loader/init.c fil
> e from:
> 
> #if USE_MINILIBC
> 		reboot(0xfee1dead, 672274793, 0x1234567);
> #else
> 
> to:
> 
> #if USE_MINILIBC
> 		printf("Matt's evil hack....\n");
> 		reboot(0xfee1dead, 672274793, 0xCDEF123);
> 		exit(0);
> #else
> 
> I got this replacement reboot call out of the source to /sbin/shutdown in the
> sysvinit package.  But it doesn't seem to work, because after it gets to this
> ,
> I get this error message:
> 
>

Why not just exec() or even system() the shutdown command you've installed?



-- 
Cheers
John Summerfield

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my disposition.

==============================
If you don't like being told you're wrong,
	be right!







[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux