diff options
author | Antoine Ginies <aginies@mandriva.com> | 2007-10-25 07:54:02 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2007-10-25 07:54:02 +0000 |
commit | b0c5a5718787d975cbb15849dae960d0801726bc (patch) | |
tree | 26e4bac053f3c5ede42f298c3699eacbf4d50f0a /rescue | |
parent | 21ba361db26182b0ad557c8c4869e2c3870e3328 (diff) | |
download | drakx-b0c5a5718787d975cbb15849dae960d0801726bc.tar drakx-b0c5a5718787d975cbb15849dae960d0801726bc.tar.gz drakx-b0c5a5718787d975cbb15849dae960d0801726bc.tar.bz2 drakx-b0c5a5718787d975cbb15849dae960d0801726bc.tar.xz drakx-b0c5a5718787d975cbb15849dae960d0801726bc.zip |
grep ka from cmdline, and launch new script
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/tree/etc/rc.sysinit | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/rescue/tree/etc/rc.sysinit b/rescue/tree/etc/rc.sysinit index e6da12ea0..cbb42aed3 100755 --- a/rescue/tree/etc/rc.sysinit +++ b/rescue/tree/etc/rc.sysinit @@ -1,6 +1,8 @@ #!/bin/sh action() { echo $1; shift; $*; } +DATE=`date +%Y%m%d-%Hh%M` +KADIR="/ka2" export PATH=/bin:/sbin:/usr/bin:/usr/sbin @@ -51,11 +53,15 @@ stty sane grep -q noauto /proc/cmdline || drvinst SERIAL_USB -if grep ka /proc/cmdline; then - echo Welcome to Ka rescue - drvinst - cd /ka - ./install.sh +if grep kamethod /proc/cmdline; then + echo "Welcome to Ka" + drvinst + ln -sf /tmp/stage2/ka $KADIR + ln -sf /tmp/stage2/disk /disk + cd $KADIR + echo "-------- Starting LOG server -------------" + perl send_status.pl > /tmp/kacmd & + exec ./ka_replication.sh > /tmp/ka_log-$HOSTNAME-$DATE 2>&1 fi if ! grep -q expert /proc/cmdline; then |