wok-stable rev 622
hardinfo: get the right path for lsmod and user id
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 21 00:18:12 2008 +0200 (2008-04-21) |
parents | 6a9428a46323 |
children | 924a05471475 |
files | hardinfo/receipt hardinfo/stuff/modules.patch hardinfo/stuff/users.patch |
line diff
1.1 --- a/hardinfo/receipt Sun Apr 20 02:19:09 2008 +0200 1.2 +++ b/hardinfo/receipt Mon Apr 21 00:18:12 2008 +0200 1.3 @@ -14,6 +14,8 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + patch -p0 < ../stuff/modules.patch || exit 1 1.8 + patch -p0 < ../stuff/users.patch || exit 1 1.9 ./configure \ 1.10 --prefix=/usr \ 1.11 $CONFIGURE_ARGS
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/hardinfo/stuff/modules.patch Mon Apr 21 00:18:12 2008 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +--- arch/linux/common/modules.h Sun Nov 4 14:14:30 2007 2.5 ++++ arch/linux/common/modules.h Sun Apr 20 23:49:38 2008 2.6 +@@ -42,7 +42,7 @@ 2.7 + module_list = NULL; 2.8 + g_hash_table_foreach_remove(moreinfo, remove_module_devices, NULL); 2.9 + 2.10 +- lsmod = popen("/sbin/lsmod", "r"); 2.11 ++ lsmod = popen("/bin/lsmod", "r"); 2.12 + if (!lsmod) 2.13 + return; 2.14 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/hardinfo/stuff/users.patch Mon Apr 21 00:18:12 2008 +0200 3.3 @@ -0,0 +1,11 @@ 3.4 +--- arch/common/users.h Sun Nov 4 14:14:35 2007 3.5 ++++ arch/common/users.h Sun Apr 20 23:57:31 2008 3.6 +@@ -44,7 +44,7 @@ 3.7 + 3.8 + uid = atoi(tmp[2]); 3.9 + strend(tmp[4], ','); 3.10 +- if (uid >= 1000 && uid <= 65530) { 3.11 ++ if (uid >= 500 && uid <= 65530) { 3.12 + human_users = h_strdup_cprintf("$%s$%s=%s\n", human_users, key, tmp[0], tmp[4]); 3.13 + } else { 3.14 + sys_users = h_strdup_cprintf("$%s$%s=%s\n", sys_users, key, tmp[0], tmp[4]);