Author: titmuss
Date: Wed Jan 30 02:05:45 2008
New Revision: 1693
URL: http://svn.slimdevices.com?rev=1693&root=Jive&view=rev
Log:
Bug: 6861
Description:
Fix logging to /var on SD card.
Modified:
branches/7.0/squeezeboxJive/src/system/filesystem/etc/init.d/rcS
Modified: branches/7.0/squeezeboxJive/src/system/filesystem/etc/init.d/rcS
URL:
http://svn.slimdevices.com/branches/7.0/squeezeboxJive/src/system/filesystem/etc/init.d/rcS?rev=1693&root=Jive&r1=1692&r2=1693&view=diff
==============================================================================
--- branches/7.0/squeezeboxJive/src/system/filesystem/etc/init.d/rcS (original)
+++ branches/7.0/squeezeboxJive/src/system/filesystem/etc/init.d/rcS Wed Jan 30
02:05:45 2008
@@ -20,7 +20,8 @@
# Start syslogd
grep /mnt/mmc /proc/mounts | cut -d' ' -f 4 | grep -q rw
-if [ $? = 0 -a -e /mnt/mmc/log ]; then
+MMCRW=$?
+if [ $MMCRW = 0 -a -e /mnt/mmc/log ]; then
# log and core files to mmc
echo "Starting syslogd (to mmc)"
@@ -29,7 +30,7 @@
echo "Enabling core files (to mmc)"
echo "/mnt/mmc/log/core-%e" > /proc/sys/kernel/core_pattern
ulimit -c unlimited
-elif [ $? = 0 -a -e /mnt/mmc/var ]; then
+elif [ $MMCRW = 0 -a -e /mnt/mmc/var ]; then
# log and core files to mmc
/bin/mkdir -p /mnt/mmc/var/log /mnt/mmc/var/core
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins