# 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 <<<