# HG changeset patch # User Christophe Lincoln # Date 1208729892 -7200 # Node ID b22fba97e731a3f27bf97ed45d7059d9c6533843 # Parent 6a9428a463237a5ea2826aa9f38d84ce4fe1042c hardinfo: get the right path for lsmod and user id diff -r 6a9428a46323 -r b22fba97e731 hardinfo/receipt --- a/hardinfo/receipt Sun Apr 20 02:19:09 2008 +0200 +++ b/hardinfo/receipt Mon Apr 21 00:18:12 2008 +0200 @@ -14,6 +14,8 @@ compile_rules() { cd $src + patch -p0 < ../stuff/modules.patch || exit 1 + patch -p0 < ../stuff/users.patch || exit 1 ./configure \ --prefix=/usr \ $CONFIGURE_ARGS diff -r 6a9428a46323 -r b22fba97e731 hardinfo/stuff/modules.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hardinfo/stuff/modules.patch Mon Apr 21 00:18:12 2008 +0200 @@ -0,0 +1,11 @@ +--- arch/linux/common/modules.h Sun Nov 4 14:14:30 2007 ++++ arch/linux/common/modules.h Sun Apr 20 23:49:38 2008 +@@ -42,7 +42,7 @@ + module_list = NULL; + g_hash_table_foreach_remove(moreinfo, remove_module_devices, NULL); + +- lsmod = popen("/sbin/lsmod", "r"); ++ lsmod = popen("/bin/lsmod", "r"); + if (!lsmod) + return; + diff -r 6a9428a46323 -r b22fba97e731 hardinfo/stuff/users.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hardinfo/stuff/users.patch Mon Apr 21 00:18:12 2008 +0200 @@ -0,0 +1,11 @@ +--- arch/common/users.h Sun Nov 4 14:14:35 2007 ++++ arch/common/users.h Sun Apr 20 23:57:31 2008 +@@ -44,7 +44,7 @@ + + uid = atoi(tmp[2]); + strend(tmp[4], ','); +- if (uid >= 1000 && uid <= 65530) { ++ if (uid >= 500 && uid <= 65530) { + human_users = h_strdup_cprintf("$%s$%s=%s\n", human_users, key, tmp[0], tmp[4]); + } else { + sys_users = h_strdup_cprintf("$%s$%s=%s\n", sys_users, key, tmp[0], tmp[4]);