diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-30 19:51:31 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-30 19:51:31 +0000 |
commit | a5815790ad4f7830146ee45951750baa3c6ab931 (patch) | |
tree | 808ec23431795786a310f97cd003fa7f3b032f59 /openwrt/package/busybox/patches | |
parent | 769da876ede5b47897fa63be58116ded49565ee8 (diff) |
fix udhcp release patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1112 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/busybox/patches')
-rw-r--r-- | openwrt/package/busybox/patches/150-udhcp-release.patch | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openwrt/package/busybox/patches/150-udhcp-release.patch b/openwrt/package/busybox/patches/150-udhcp-release.patch index dedec09a9..b89bfec1e 100644 --- a/openwrt/package/busybox/patches/150-udhcp-release.patch +++ b/openwrt/package/busybox/patches/150-udhcp-release.patch @@ -5,7 +5,7 @@ diff -Nurb busybox-1.00/include/usage.h busybox-1.00-patched/include/usage.h "\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated.\n" \ "\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \ "\t-q,\t--quit\tQuit after obtaining lease\n" \ -+ "\t-R\t--release\tRelease IP on quit\n" \ ++ "\t-R,\t--release\tRelease IP on quit\n" \ "\t-r,\t--request=IP\tIP address to request (default: none)\n" \ "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \ "\t-v,\t--version\tDisplay version" @@ -36,6 +36,15 @@ diff -Nurb busybox-1.00/networking/udhcp/dhcpc.c busybox-1.00-patched/networking {"request", required_argument, 0, 'r'}, {"script", required_argument, 0, 's'}, {"version", no_argument, 0, 'v'}, +@@ -214,7 +214,7 @@ + /* get options */ + while (1) { + int option_index = 0; +- c = getopt_long(argc, argv, "c:fbH:h:i:np:qr:s:v", arg_options, &option_index); ++ c = getopt_long(argc, argv, "c:fbH:h:i:np:qRr:s:v", arg_options, &option_index); + if (c == -1) break; + + switch (c) { @@ -251,6 +254,9 @@ case 'q': client_config.quit_after_lease = 1; |