diff options
author | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2010-04-03 18:09:09 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2010-04-03 18:09:09 +0000 |
commit | 77a1b5673c74bbb37444a7a1d759a7ed9eb22a76 (patch) | |
tree | 3f5c4fc18f465d935078b5a795b830145b27f991 /package | |
parent | 4b03e12f5cdcc814eb96d7982f8c81c09126f658 (diff) | |
download | master-187ad058-77a1b5673c74bbb37444a7a1d759a7ed9eb22a76.tar.gz master-187ad058-77a1b5673c74bbb37444a7a1d759a7ed9eb22a76.tar.bz2 master-187ad058-77a1b5673c74bbb37444a7a1d759a7ed9eb22a76.zip |
[package] hotplug2: Cancel firmware loading on file openning errors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20680 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/hotplug2/patches/130-cancel_download_fix.patch | 19 |
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 0000000000..6053a307cd --- /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; + } + |