# From: Richard Hobbs [mailto:richard.hobbs@crl.toshiba.co.uk] # Sent: Wednesday, February 15, 2006 7:42 AM # To: suse-autoinstall@suse.com # Subject: [suse-autoinstall] Performing an online update from within an init script # # Hello, # # Is it possible to run an online update using YaST2 from within an init # script? # # If so, which command should I use, and how can I specify what types of # packages I want to upgrade (e.g. security, recommended etc...)? # # Thanks in advance, people :-) This should get you started - run this as an init_script: #!/bin/sh /bin/chvt 9 exec < /dev/tty9 > /dev/tty9 echo Performing online update... online_update -l en -u <<<<url_to_update_from>>>> -V SuSEconfig echo Rebooting the computer now to use the new kernel. sleep 5 /bin/chvt 1 shutdown -r now