| 226 |
exit 2 |
exit 2 |
| 227 |
fi |
fi |
| 228 |
|
|
| 229 |
# HG: are we called as an init substitute ? |
# are we called as an init substitute ? |
| 230 |
export DO_INIT_TASKS=0 |
export DO_INIT_TASKS=0 |
| 231 |
[ "$0" = "/etc/init.d/rcS" ] && DO_INIT_TASKS=1 |
[ "$0" = "/etc/init.d/rcS" ] && DO_INIT_TASKS=1 |
| 232 |
if [ $DO_INIT_TASKS -eq 1 ]; then |
if [ $DO_INIT_TASKS -eq 1 ]; then |
| 233 |
renewclass=1 # always renew class list when installing |
renewclass=1 # always renew class list when installing |
| 234 |
create_ramdisk |
create_ramdisk |
| 235 |
fi |
fi |
| 236 |
export start_seconds=$(cut -d . -f 1 /proc/uptime) |
export start_seconds=$(cut -d . -f 1 /proc/uptime) |
| 237 |
|
|
| 238 |
export LOGDIR=/var/log/fai/current |
export LOGDIR=/var/log/fai/current |
| 239 |
[ -d $LOGDIR ] && rm -rf $LOGDIR |
[ -d $LOGDIR ] && rm -rf $LOGDIR |
| 240 |
mkdir -p $LOGDIR |
mkdir -p $LOGDIR |
| 241 |
|
|
| 242 |
# for compability, can be removed later |
# for compability, can be removed later |
| 243 |
if [ $DO_INIT_TASKS -eq 1 ]; then |
if [ $DO_INIT_TASKS -eq 1 ]; then |
| 244 |
mkdir /tmp/fai |
mkdir /tmp/fai |
| 245 |
mount --bind $LOGDIR /tmp/fai |
mount --bind $LOGDIR /tmp/fai |
| 246 |
fi |
fi |
| 247 |
|
|
| 248 |
fai_init |
fai_init |
| 249 |
if [ X$action = Xdirinst ]; then |
if [ X$action = Xdirinst ]; then |