From a658027292c4cff5d383a5e5c5eeea5f27daa33d Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 4 Mar 2003 14:59:48 +0000 Subject: Start whining to stderr when people use obsolete flags. These flags will be removed. Give terse pointer to ifconfig h0h0 magic to use. --- usr.sbin/wicontrol/wicontrol.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'usr.sbin/wicontrol') diff --git a/usr.sbin/wicontrol/wicontrol.c b/usr.sbin/wicontrol/wicontrol.c index 8b78ddb..631f125 100644 --- a/usr.sbin/wicontrol/wicontrol.c +++ b/usr.sbin/wicontrol/wicontrol.c @@ -1036,6 +1036,7 @@ main(int argc, char *argv[]) exit(0); break; case 'c': + warnx("c obsolete, use ifconfig mediaopt"); wi_setword(iface, WI_RID_CREATE_IBSS, atoi(optarg)); exit(0); break; @@ -1044,10 +1045,12 @@ main(int argc, char *argv[]) exit(0); break; case 'e': + warnx("e obsolete, use ifconfig wepmode"); wi_setword(iface, WI_RID_ENCRYPTION, atoi(optarg)); exit(0); break; case 'f': + warnx("f obsolete, use ifconfig channel"); wi_setword(iface, WI_RID_OWN_CHNL, atoi(optarg)); exit(0); break; @@ -1056,6 +1059,7 @@ main(int argc, char *argv[]) exit(0); break; case 'k': + warnx("k obsolete, use ifconfig wepkey"); key = optarg; break; case 'L': @@ -1066,6 +1070,7 @@ main(int argc, char *argv[]) exit(0); break; case 'p': + warnx("p obsolete, use ifconfig mediaopt"); wi_setword(iface, WI_RID_PORTTYPE, atoi(optarg)); exit(0); break; @@ -1074,14 +1079,17 @@ main(int argc, char *argv[]) exit(0); break; case 't': + warnx("t obsolete, use ifconfig meidaopt"); wi_setword(iface, WI_RID_TX_RATE, atoi(optarg)); exit(0); break; case 'n': + warnx("n obsolete, use ifconfig ssid"); wi_setstr(iface, WI_RID_DESIRED_SSID, optarg); exit(0); break; case 's': + warnx("s obsolete, use ifconfig stationname"); wi_setstr(iface, WI_RID_NODENAME, optarg); exit(0); break; @@ -1093,19 +1101,23 @@ main(int argc, char *argv[]) quiet = 1; break; case 'q': + warnx("q obsolete, use ifconfig ssid"); wi_setstr(iface, WI_RID_OWN_SSID, optarg); exit(0); break; case 'S': + warnx("S obsolete, use ifconfig powersleep"); wi_setword(iface, WI_RID_MAX_SLEEP, atoi(optarg)); exit(0); break; case 'T': + warnx("T obsolete, use ifconfig weptxkey"); wi_setword(iface, WI_RID_TX_CRYPT_KEY, atoi(optarg) - 1); exit(0); break; case 'P': + warnx("P obsolete, use ifconfig powersave"); wi_setword(iface, WI_RID_PM_ENABLED, atoi(optarg)); exit(0); break; -- cgit v1.1