Re: Script which runs after first reboot only?

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

 



>>>>> "P" == Pat  <patchu1@xxxxxxxxx> writes:

P> There are a few last steps I need to do to complete my automated
P> system setup which can only be done AFTER a computer reboots when
P> it completes an installation.

I do this; in %post I just stick the script in /math-firstboot and
then stick this at the end of /etc/rc.d/rc.local:

if [ -f /math-firstboot ]; then
  echo "First boot: doing initial setup"
  /math-firstboot&
fi

The last thing /math-firstboot does is delete itself.

This isn't the prettiest way to do things, but it's worked for me for
many releases now.

 - J<


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux