| 1 |
|
|---|
| 2 | + self=install_init_script
|
|---|
| 3 | + script=/opt/VBoxGuestAdditions-5.1.4/init/vboxadd
|
|---|
| 4 | + name=vboxadd
|
|---|
| 5 | + test -x /opt/VBoxGuestAdditions-5.1.4/init/vboxadd
|
|---|
| 6 | + test '!' vboxadd = ''
|
|---|
| 7 | + test -L /sbin/rcvboxadd
|
|---|
| 8 | + ln -s /opt/VBoxGuestAdditions-5.1.4/init/vboxadd /sbin/rcvboxadd
|
|---|
| 9 | ++ which systemctl
|
|---|
| 10 | + test -x ''
|
|---|
| 11 | + test -d /etc/rc.d/init.d
|
|---|
| 12 | + cp /opt/VBoxGuestAdditions-5.1.4/init/vboxadd /etc/rc.d/init.d/vboxadd
|
|---|
| 13 | + chmod 755 /etc/rc.d/init.d/vboxadd
|
|---|
| 14 | + self=addrunlevel
|
|---|
| 15 | + name=vboxadd
|
|---|
| 16 | + test -n vboxadd
|
|---|
| 17 | + systemd_service_installed vboxadd
|
|---|
| 18 | + name=vboxadd
|
|---|
| 19 | + test -f /lib/systemd/system/vboxadd.service
|
|---|
| 20 | + test -f /usr/lib/systemd/system/vboxadd.service
|
|---|
| 21 | + test -x /etc/rc.d/init.d/vboxadd
|
|---|
| 22 | + init_d_path=/etc/rc.d
|
|---|
| 23 | + get_chkconfig_info /etc/rc.d/init.d/vboxadd
|
|---|
| 24 | + script=/etc/rc.d/init.d/vboxadd
|
|---|
| 25 | ++ sed -n 's/# *chkconfig: *\([0-9]*\) *\(.*\)/\1 \2/p' /etc/rc.d/init.d/vboxadd
|
|---|
| 26 | + set 345 10 90
|
|---|
| 27 | + runlevels=345
|
|---|
| 28 | + start_order=10
|
|---|
| 29 | + stop_order=90
|
|---|
| 30 | + test '!' -z vboxadd
|
|---|
| 31 | + expr 10 + 0
|
|---|
| 32 | + expr 0 '<=' 10
|
|---|
| 33 | ++ expr length 10
|
|---|
| 34 | + test 2 -eq 2
|
|---|
| 35 | + expr 90 + 0
|
|---|
| 36 | + expr 0 '<=' 90
|
|---|
| 37 | ++ expr length 90
|
|---|
| 38 | + test 2 -eq 2
|
|---|
| 39 | ++ which chkconfig
|
|---|
| 40 | + test -x /sbin/chkconfig
|
|---|
| 41 | + chkconfig --add vboxadd
|
|---|
| 42 | chcon: can't apply partial context to unlabeled file `/usr/lib64/VBoxGuestAdditions/mount.vboxsf'
|
|---|
| 43 | + do_sysvinit_action vboxadd start
|
|---|
| 44 | + self=do_sysvinit_action
|
|---|
| 45 | + name=vboxadd
|
|---|
| 46 | + action=start
|
|---|
| 47 | + test '!' -z vboxadd
|
|---|
| 48 | + test '!' -z start
|
|---|
| 49 | + systemd_service_installed vboxadd
|
|---|
| 50 | + name=vboxadd
|
|---|
| 51 | + test -f /lib/systemd/system/vboxadd.service
|
|---|
| 52 | + test -f /usr/lib/systemd/system/vboxadd.service
|
|---|
| 53 | ++ which service
|
|---|
| 54 | + test -x /sbin/service
|
|---|
| 55 | + service vboxadd start
|
|---|
| 56 | + self=install_init_script
|
|---|
| 57 | + script=/opt/VBoxGuestAdditions-5.1.4/init/vboxadd-service
|
|---|
| 58 | + name=vboxadd-service
|
|---|
| 59 | + test -x /opt/VBoxGuestAdditions-5.1.4/init/vboxadd-service
|
|---|
| 60 | + test '!' vboxadd-service = ''
|
|---|
| 61 | + test -L /sbin/rcvboxadd-service
|
|---|
| 62 | + ln -s /opt/VBoxGuestAdditions-5.1.4/init/vboxadd-service /sbin/rcvboxadd-service
|
|---|
| 63 | ++ which systemctl
|
|---|
| 64 | + test -x ''
|
|---|
| 65 | + test -d /etc/rc.d/init.d
|
|---|
| 66 | + cp /opt/VBoxGuestAdditions-5.1.4/init/vboxadd-service /etc/rc.d/init.d/vboxadd-service
|
|---|
| 67 | + chmod 755 /etc/rc.d/init.d/vboxadd-service
|
|---|
| 68 | + self=addrunlevel
|
|---|
| 69 | + name=vboxadd-service
|
|---|
| 70 | + test -n vboxadd-service
|
|---|
| 71 | + systemd_service_installed vboxadd-service
|
|---|
| 72 | + name=vboxadd-service
|
|---|
| 73 | + test -f /lib/systemd/system/vboxadd-service.service
|
|---|
| 74 | + test -f /usr/lib/systemd/system/vboxadd-service.service
|
|---|
| 75 | + test -x /etc/rc.d/init.d/vboxadd-service
|
|---|
| 76 | + init_d_path=/etc/rc.d
|
|---|
| 77 | + get_chkconfig_info /etc/rc.d/init.d/vboxadd-service
|
|---|
| 78 | + script=/etc/rc.d/init.d/vboxadd-service
|
|---|
| 79 | ++ sed -n 's/# *chkconfig: *\([0-9]*\) *\(.*\)/\1 \2/p' /etc/rc.d/init.d/vboxadd-service
|
|---|
| 80 | + set 345 35 65
|
|---|
| 81 | + runlevels=345
|
|---|
| 82 | + start_order=35
|
|---|
| 83 | + stop_order=65
|
|---|
| 84 | + test '!' -z vboxadd-service
|
|---|
| 85 | + expr 35 + 0
|
|---|
| 86 | + expr 0 '<=' 35
|
|---|
| 87 | ++ expr length 35
|
|---|
| 88 | + test 2 -eq 2
|
|---|
| 89 | + expr 65 + 0
|
|---|
| 90 | + expr 0 '<=' 65
|
|---|
| 91 | ++ expr length 65
|
|---|
| 92 | + test 2 -eq 2
|
|---|
| 93 | ++ which chkconfig
|
|---|
| 94 | + test -x /sbin/chkconfig
|
|---|
| 95 | + chkconfig --add vboxadd-service
|
|---|
| 96 | + self=install_init_script
|
|---|
| 97 | + script=/opt/VBoxGuestAdditions-5.1.4/init/vboxadd-x11
|
|---|
| 98 | + name=vboxadd-x11
|
|---|
| 99 | + test -x /opt/VBoxGuestAdditions-5.1.4/init/vboxadd-x11
|
|---|
| 100 | + test '!' vboxadd-x11 = ''
|
|---|
| 101 | + test -L /sbin/rcvboxadd-x11
|
|---|
| 102 | + rm /sbin/rcvboxadd-x11
|
|---|
| 103 | + ln -s /opt/VBoxGuestAdditions-5.1.4/init/vboxadd-x11 /sbin/rcvboxadd-x11
|
|---|
| 104 | ++ which systemctl
|
|---|
| 105 | + test -x ''
|
|---|
| 106 | + test -d /etc/rc.d/init.d
|
|---|
| 107 | + cp /opt/VBoxGuestAdditions-5.1.4/init/vboxadd-x11 /etc/rc.d/init.d/vboxadd-x11
|
|---|
| 108 | + chmod 755 /etc/rc.d/init.d/vboxadd-x11
|
|---|
| 109 | + self=addrunlevel
|
|---|
| 110 | + name=vboxadd-x11
|
|---|
| 111 | + test -n vboxadd-x11
|
|---|
| 112 | + systemd_service_installed vboxadd-x11
|
|---|
| 113 | + name=vboxadd-x11
|
|---|
| 114 | + test -f /lib/systemd/system/vboxadd-x11.service
|
|---|
| 115 | + test -f /usr/lib/systemd/system/vboxadd-x11.service
|
|---|
| 116 | + test -x /etc/rc.d/init.d/vboxadd-x11
|
|---|
| 117 | + init_d_path=/etc/rc.d
|
|---|
| 118 | + get_chkconfig_info /etc/rc.d/init.d/vboxadd-x11
|
|---|
| 119 | + script=/etc/rc.d/init.d/vboxadd-x11
|
|---|
| 120 | ++ sed -n 's/# *chkconfig: *\([0-9]*\) *\(.*\)/\1 \2/p' /etc/rc.d/init.d/vboxadd-x11
|
|---|
| 121 | + set 35 30 70
|
|---|
| 122 | + runlevels=35
|
|---|
| 123 | + start_order=30
|
|---|
| 124 | + stop_order=70
|
|---|
| 125 | + test '!' -z vboxadd-x11
|
|---|
| 126 | + expr 30 + 0
|
|---|
| 127 | + expr 0 '<=' 30
|
|---|
| 128 | ++ expr length 30
|
|---|
| 129 | + test 2 -eq 2
|
|---|
| 130 | + expr 70 + 0
|
|---|
| 131 | + expr 0 '<=' 70
|
|---|
| 132 | ++ expr length 70
|
|---|
| 133 | + test 2 -eq 2
|
|---|
| 134 | ++ which chkconfig
|
|---|
| 135 | + test -x /sbin/chkconfig
|
|---|
| 136 | + chkconfig --add vboxadd-x11
|
|---|