Lines 134-229
Link Here
|
134 |
. /etc/rc.early |
134 |
. /etc/rc.early |
135 |
fi |
135 |
fi |
136 |
|
136 |
|
137 |
case ${bootmode} in |
137 |
if [ -r /etc/rc.live ]; then |
138 |
autoboot) |
138 |
echo -n 'Initializing LiveCD:' |
139 |
echo 'Automatic boot in progress...' |
139 |
sh /etc/rc.live |
140 |
fsck -p |
140 |
echo '.' |
141 |
case $? in |
|
|
142 |
0) |
143 |
;; |
144 |
2) |
145 |
exit 1 |
146 |
;; |
147 |
4) |
148 |
reboot |
149 |
echo 'Reboot failed... help!' |
150 |
exit 1 |
151 |
;; |
152 |
8) |
153 |
case ${fsck_y_enable} in |
154 |
[Yy][Ee][Ss]) |
155 |
echo 'File system preen failed, trying fsck -y . . .' |
156 |
fsck -y |
157 |
case $? in |
158 |
0) |
159 |
;; |
160 |
*) |
161 |
echo 'Automatic file system check failed . . . help!' |
162 |
exit 1 |
163 |
;; |
164 |
esac |
165 |
;; |
166 |
*) |
167 |
echo 'Automatic file system check failed . . . help!' |
168 |
exit 1 |
169 |
;; |
170 |
esac |
171 |
;; |
172 |
12) |
173 |
echo 'Reboot interrupted' |
174 |
exit 1 |
175 |
;; |
176 |
130) |
177 |
# interrupt before catcher installed |
178 |
exit 1 |
179 |
;; |
180 |
*) |
181 |
echo 'Unknown error in reboot' |
182 |
exit 1 |
183 |
;; |
184 |
esac |
185 |
;; |
186 |
*) |
187 |
echo 'Skipping disk checks ...' |
188 |
;; |
189 |
esac |
190 |
|
191 |
set -T |
192 |
trap "echo 'Reboot interrupted'; exit 1" 3 |
193 |
|
194 |
# root normally must be read/write, but if this is a BOOTP NFS |
195 |
# diskless boot it does not have to be. |
196 |
# |
197 |
case ${root_rw_mount} in |
198 |
[Nn][Oo] | '') |
199 |
;; |
200 |
*) |
201 |
if ! mount -u -o rw /; then |
202 |
echo 'Mounting root filesystem rw failed, startup aborted' |
203 |
exit 1 |
204 |
fi |
205 |
;; |
206 |
esac |
207 |
|
208 |
umount -a >/dev/null 2>&1 |
209 |
|
210 |
# If using diskless, run custom disk mounting function here |
211 |
# |
212 |
if [ -n "${diskless_mount}" -a -r "${diskless_mount}" ]; then |
213 |
sh ${diskless_mount} |
214 |
else |
215 |
# otherwise mount everything except nfs filesystems. |
216 |
mount -a -t nonfs |
217 |
fi |
141 |
fi |
218 |
|
|
|
219 |
case $? in |
220 |
0) |
221 |
;; |
222 |
*) |
223 |
echo 'Mounting /etc/fstab filesystems failed, startup aborted' |
224 |
exit 1 |
225 |
;; |
226 |
esac |
227 |
|
142 |
|
228 |
adjkerntz -i |
143 |
adjkerntz -i |