Author: titmuss
Date: Wed Jan 30 02:55:11 2008
New Revision: 1697
URL: http://svn.slimdevices.com?rev=1697&root=Jive&view=rev
Log:
[EMAIL PROTECTED] (orig r1693): titmuss | 2008-01-30 10:05:45 +0000
Bug: 6861
Description:
Fix logging to /var on SD card.
Modified:
trunk/ (props changed)
trunk/squeezeboxJive/src/system/filesystem/etc/init.d/rcS
Propchange: trunk/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Wed Jan 30 02:55:11 2008
@@ -1,3 +1,3 @@
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1692
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1693
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378
Modified: trunk/squeezeboxJive/src/system/filesystem/etc/init.d/rcS
URL:
http://svn.slimdevices.com/trunk/squeezeboxJive/src/system/filesystem/etc/init.d/rcS?rev=1697&root=Jive&r1=1696&r2=1697&view=diff
==============================================================================
--- trunk/squeezeboxJive/src/system/filesystem/etc/init.d/rcS (original)
+++ trunk/squeezeboxJive/src/system/filesystem/etc/init.d/rcS Wed Jan 30
02:55:11 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