summaryrefslogtreecommitdiffstats
path: root/reconfig.init
blob: becae6ce2e20ac93926baeb00b3ab9e6146ec2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
#
# reconfig		This scripts runs the system reconfig program
#
# chkconfig: 345 05 95
# description: 	If /etc/reconfigSys exists, run the reconfiguration
#		program and remove /etc/reconfigSys when done.

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=$?

case "$1" in
 start)
        if [ -f /etc/reconfigSys ]; then
	    echo -n "Running system reconfiguration tool"
	    /usr/sbin/anaconda --reconfig
	    rm /etc/reconfigSys
	fi

	# We don't want to run this on random runlevel changes.
	touch /var/lock/subsys/reconfig

	;;
 stop)
 	rm -f /var/lock/subsys/kudzu
 	;;
 *)
 	echo "Usage: reconfig {start|stop}"
	exit 1
	;;
esac

exit $RETVAL