1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-28 06:22:25 +02:00
openwrt-xburst/package/hotplug2/patches/120-sysfs_path_fix.patch
jow a1ed470f78 [backfire] merge r20679-r20685
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21112 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-23 15:28:27 +00:00

15 lines
591 B
Diff

--- a/rules/command.c
+++ b/rules/command.c
@@ -374,9 +374,9 @@ RULES_COMMAND_F(cmd_firmware) {
if (firmware == NULL)
return -1;
- if (snprintf(sysfs_path_loading, PATH_MAX, "/sysfs%s/loading", devpath) >= PATH_MAX)
+ if (snprintf(sysfs_path_loading, PATH_MAX, "/sys%s/loading", devpath) >= PATH_MAX)
return -1;
- if (snprintf(sysfs_path_data, PATH_MAX, "/sysfs%s/data", devpath) >= PATH_MAX)
+ if (snprintf(sysfs_path_data, PATH_MAX, "/sys%s/data", devpath) >= PATH_MAX)
return -1;
if (snprintf(firmware_path, PATH_MAX, "%s/%s", argv[0], firmware) >= PATH_MAX)
return -1;