summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/tweaker/bin/twk_RAM.pl
diff options
context:
space:
mode:
authorBob Igo <bob@stormlogic.com>2009-02-10 02:49:15 (GMT)
committerBob Igo <bob@stormlogic.com>2009-02-10 02:49:15 (GMT)
commit3c23b95df42b8ec226ab4110364cd69a50b48b2b (patch)
treec3efc89feceb2110f9ae9f75c7f2425bc9995b87 /abs/core-testing/tweaker/bin/twk_RAM.pl
parentdcfc40ff3b29121365037a5ed0845bd64efb6c55 (diff)
downloadlinhes_pkgbuild-3c23b95df42b8ec226ab4110364cd69a50b48b2b.zip
linhes_pkgbuild-3c23b95df42b8ec226ab4110364cd69a50b48b2b.tar.gz
linhes_pkgbuild-3c23b95df42b8ec226ab4110364cd69a50b48b2b.tar.bz2
Tweaker integration progress.
Diffstat (limited to 'abs/core-testing/tweaker/bin/twk_RAM.pl')
-rwxr-xr-xabs/core-testing/tweaker/bin/twk_RAM.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/abs/core-testing/tweaker/bin/twk_RAM.pl b/abs/core-testing/tweaker/bin/twk_RAM.pl
index ead3e3c..79fe938 100755
--- a/abs/core-testing/tweaker/bin/twk_RAM.pl
+++ b/abs/core-testing/tweaker/bin/twk_RAM.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w
-# Copyright 2007, 2008 Robert ("Bob") Igo of StormLogic, LLC and mythic.tv.
+# Copyright 2007-2009 Robert ("Bob") Igo of StormLogic, LLC and mythic.tv.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -48,10 +48,13 @@ sub implement_option {
# We will arbitrarily set the cache size to 1/16 of available RAM
my $cachesize = int($RAM_size / 16);
execute_shell_command("sed -i 's/cache.*=.*/cache=$cachesize/g' /etc/mplayer/mplayer.conf") || exit -1;
+
+ # If there's enough RAM, make mtd run by default.
+ # ??? unimplemented
} else {
- exit -1; # You may not have to do this. It's only when you need to change MySQL settings for MythTV.
- } # You may not have to do this. It's only when you need to change MySQL settings for MythTV.
- disconnect_from_db(); # You may not have to do this. It's only when you need to change MySQL settings for MythTV.
+ exit -1;
+ }
+ disconnect_from_db();
}
# Poll the system to see what recommendationlevel the given option has on the system.