summaryrefslogtreecommitdiff
path: root/package/hotplug2
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-04-03 18:09:09 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-04-03 18:09:09 +0000
commit41f375e8373912492437891ec4fcd2248cb48e30 (patch)
treeacba085a4bbd5c8c1636fd0c52bd8963111cd05e /package/hotplug2
parentd234536a34cd2bae4147ec9f9d057767e02a57f5 (diff)
downloadmtk-20170518-41f375e8373912492437891ec4fcd2248cb48e30.zip
mtk-20170518-41f375e8373912492437891ec4fcd2248cb48e30.tar.gz
mtk-20170518-41f375e8373912492437891ec4fcd2248cb48e30.tar.bz2
hotplug2: Cancel firmware loading on file openning errors
SVN-Revision: 20680
Diffstat (limited to 'package/hotplug2')
-rw-r--r--package/hotplug2/patches/130-cancel_download_fix.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/hotplug2/patches/130-cancel_download_fix.patch b/package/hotplug2/patches/130-cancel_download_fix.patch
new file mode 100644
index 0000000..6053a30
--- /dev/null
+++ b/package/hotplug2/patches/130-cancel_download_fix.patch
@@ -0,0 +1,19 @@
+diff -x '*~' -Naur hotplug2-201/rules/command.c hotplug2-201.patched/rules/command.c
+--- hotplug2-201/rules/command.c 2010-03-31 17:14:44.000000000 +0300
++++ hotplug2-201.patched/rules/command.c 2010-03-31 17:14:51.000000000 +0300
+@@ -385,13 +385,13 @@
+
+ infp = fopen(firmware_path, "r");
+ if (infp == NULL) {
+- echo_to_file(sysfs_path_loading, "0\n", 2);
++ echo_to_file(sysfs_path_loading, "-1\n", 2);
+ return -1;
+ }
+ outfp = fopen(sysfs_path_data, "w");
+ if (outfp == NULL) {
+ fclose(infp);
+- echo_to_file(sysfs_path_loading, "0\n", 2);
++ echo_to_file(sysfs_path_loading, "-1\n", 2);
+ return -1;
+ }
+