Mailinglist Archive: opensuse-autoinstall (101 mails)
| < Previous | Next > |
@SUSE: Improvement for /etc/init.d/autoyast
- From: Bernd Nies <listuser@xxxxxxxxxx>
- Date: Fri, 3 Mar 2006 16:59:22 +0000 (UTC)
- Message-id: <440873DE.3040209@xxxxxxxxxx>
Hi,
An Autoyast improvement for future SUSE releases that would make setting up a host using Autoyast with post install scripts easier.
Sort the scripts in /var/adm/autoinstall/init.d alphabetically before they are executed. So the order can be defined according to the runlevel scripts in /etc/init.d/rc?.d.
==CUT==
start)
# Remember status and be verbose
for script in `find $INITSCRIPT_DIR -type f |sort`; do
echo -n "Executing AutoYaST script: $script"
BASENAME=`basename $script`
sh -x $script 2&> $LOG_DIR/$BASENAME.log
mv $script $SCRIPT_DIR
rc_status -v
done
chkconfig autoyast off
;;
==CUT==
Currently the execution order is undefined.
Regards,
Bernd
An Autoyast improvement for future SUSE releases that would make setting up a host using Autoyast with post install scripts easier.
Sort the scripts in /var/adm/autoinstall/init.d alphabetically before they are executed. So the order can be defined according to the runlevel scripts in /etc/init.d/rc?.d.
==CUT==
start)
# Remember status and be verbose
for script in `find $INITSCRIPT_DIR -type f |sort`; do
echo -n "Executing AutoYaST script: $script"
BASENAME=`basename $script`
sh -x $script 2&> $LOG_DIR/$BASENAME.log
mv $script $SCRIPT_DIR
rc_status -v
done
chkconfig autoyast off
;;
==CUT==
Currently the execution order is undefined.
Regards,
Bernd
| < Previous | Next > |