From: <kr...@us...> - 2006-08-11 18:33:40
|
Revision: 237 Author: krisk84 Date: 2006-08-11 11:33:37 -0700 (Fri, 11 Aug 2006) ViewCVS: http://svn.sourceforge.net/astlinux/?rev=237&view=rev Log Message: ----------- you can't read variables before they are set Modified Paths: -------------- trunk/target/generic/target_skeleton/etc/rc Modified: trunk/target/generic/target_skeleton/etc/rc =================================================================== --- trunk/target/generic/target_skeleton/etc/rc 2006-08-11 18:16:04 UTC (rev 236) +++ trunk/target/generic/target_skeleton/etc/rc 2006-08-11 18:33:37 UTC (rev 237) @@ -165,7 +165,6 @@ mkdir /var/db mkdir /var/run touch /var/run/utmp -touch /var/log/wtmp mkdir /var/run/screen mkdir /var/state mkdir /var/tmp @@ -178,12 +177,14 @@ if [ ! -d /mnt/kd/log ] then mkdir /mnt/kd/log +touch /var/log/wtmp fi ln -s /mnt/kd/log /var/log else mkdir /var/log +touch /var/log/wtmp fi if `cat /proc/cmdline | grep -q depmod` @@ -328,6 +329,22 @@ ln -sf /usr/share/zoneinfo/$TIMEZONE /tmp/etc/localtime fi +if [ "$PERSISTLOG" ] +then + +if [ ! -d /mnt/kd/log ] +then +mkdir /mnt/kd/log +touch /var/log/wtmp +fi + +ln -s /mnt/kd/log /var/log + +else +mkdir /var/log +touch /var/log/wtmp +fi + if [ -d /mnt/kd/wanpipe ] then ln -s /mnt/kd/wanpipe /tmp/etc/wanpipe This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |