2 ################################################################################
5 # Description: This script will fix the local startup scripts. Thist is done
6 # by moving them from /sbin/rc2.d to /sbin/rc3.d where they
8 # Author: Andrew DeFaria (defaria@cup.hp.com)
11 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
13 ################################################################################
14 # First source /app/appserver
15 if [ -x /app/appserver ]; then
19 if [ $(id -u) -ne 0 ]; then
20 print -u2 "Error: You must be root to execute this command!"
24 if [ "$OS" = "09" ]; then
25 print -u2 "Error: $(basename $0) does not run on 9.x!"
31 if [ -x /sbin/rc2.d/S900local ]; then
32 print "Moving /sbin/rc2.d/S900local \-> /sbin/rc3.d/S900local"
33 mv /sbin/rc2.d/S900local /sbin/rc3.d/S900local
37 if [ -x /sbin/rc2.d/S920start_views ]; then
38 print "Moving /sbin/rc2.d/S920start_views \-> /sbin/rc3.d/S770start_views"
39 mv /sbin/rc2.d/S920start_views /sbin/rc3.d/S770start_views
43 if [ -x /sbin/rc2.d/S910mount_additional_vobs ]; then
44 print "Moving /sbin/rc2.d/S910mount_additional_vobs \-> /sbin/rc3.d/S775mount_additional_vobs"
45 mv /sbin/rc2.d/S910mount_additional_vobs /sbin/rc3.d/S775mount_additional_vobs
49 if [ "$moved_a_file" = "no" ]; then
50 print "Startup scripts already in their proper places"
52 print "Fixed startup scripts"