|
Lines 166-179
Link Here
|
| 166 |
chkerr() { |
166 |
chkerr() { |
| 167 |
lastitem () ( n=$(($# - 1)) ; shift $n ; echo $1 ) |
167 |
lastitem () ( n=$(($# - 1)) ; shift $n ; echo $1 ) |
| 168 |
mountpoint="$(lastitem $2)" |
168 |
mountpoint="$(lastitem $2)" |
| 169 |
[ -r $mountpoint/remount_optional ] && ( echo "$2 failed: ignoring due to remount_optional" ; return ) |
|
|
| 170 |
case $1 in |
169 |
case $1 in |
| 171 |
0) |
170 |
0) |
| 172 |
;; |
171 |
;; |
| 173 |
*) |
172 |
*) |
| 174 |
echo "$2 failed: dropping into /bin/sh" |
173 |
if [ -r $mountpoint/remount_optional ] ; then |
| 175 |
/bin/sh |
174 |
echo "$2 failed: ignoring due to remount_optional" |
| 176 |
# RESUME |
175 |
else |
|
|
176 |
echo "$2 failed: dropping into /bin/sh" |
| 177 |
/bin/sh |
| 178 |
# RESUME |
| 179 |
fi |
| 177 |
;; |
180 |
;; |
| 178 |
esac |
181 |
esac |
| 179 |
} |
182 |
} |