Log in

Bekijk de volledige versie : post-boot ??



JB_Walton
19-12-2005, 22:10
Hi,

I want to start kaid via my post-boot script.
The kaid files are on my usb-drive (/tmp/harddisk)
I changed my post-boot (/usr/local/sbin/post-boot) to the following:

#!/bin/sh
dropbear
cd /tmp/harddisk
./kaid -d -c ./kaid.conf

After flashfs save/commit/enable I rebooted the router.

After that i started puttty:

ps -a shows dropbear running, but kaid isn't.

What am i doing wrong?

Gr.

JB

alpha5
20-12-2005, 06:40
Maybe /tmp/harddisk isnīt mounted in the moment of calling cd /tmp/harddisk?

JB_Walton
20-12-2005, 07:42
Could be.

How do i test that?
What should I do?

JB

Oleg
20-12-2005, 09:19
You've to use post-mount.

JB_Walton
20-12-2005, 10:28
Thanks,

It works.