- Remove service start requirement for interfaces & devices from sysconfig
file, since wpa_supplicant's D-Bus interface is now turned on
This commit is contained in:
parent
48fea13d20
commit
7653a03028
@ -1,8 +1,3 @@
|
|||||||
ctrl_interface=/var/run/wpa_supplicant
|
ctrl_interface=/var/run/wpa_supplicant
|
||||||
ctrl_interface_group=wheel
|
ctrl_interface_group=wheel
|
||||||
|
|
||||||
network={
|
|
||||||
ssid="any"
|
|
||||||
key_mgmt=NONE
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -18,21 +18,16 @@
|
|||||||
# Source networking configuration.
|
# Source networking configuration.
|
||||||
. /etc/sysconfig/network
|
. /etc/sysconfig/network
|
||||||
|
|
||||||
# Check that networking is up.
|
|
||||||
[ "$NETWORKING" = "no" ] && exit 0
|
|
||||||
|
|
||||||
exec="/usr/sbin/wpa_supplicant"
|
exec="/usr/sbin/wpa_supplicant"
|
||||||
prog=$(basename $exec)
|
prog=$(basename $exec)
|
||||||
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
|
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
|
||||||
lockfile=/var/lock/subsys/$prog
|
lockfile=/var/lock/subsys/$prog
|
||||||
|
|
||||||
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
||||||
[ "$INTERFACES" != "" ] || exit 0
|
|
||||||
[ "$DRIVERS" != "" ] || exit 0
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
|
echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
|
||||||
daemon $prog -c $conf $INTERFACES $DRIVERS -B
|
daemon $prog -c $conf $INTERFACES $DRIVERS -B -u -f
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
[ $retval -eq 0 ] && touch $lockfile
|
[ $retval -eq 0 ] && touch $lockfile
|
||||||
|
5
wpa_supplicant.service
Normal file
5
wpa_supplicant.service
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[D-BUS Service]
|
||||||
|
Name=fi.epitest.hostap.WPASupplicant
|
||||||
|
Exec=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f
|
||||||
|
User=root
|
||||||
|
|
@ -11,6 +11,7 @@ Source2: %{name}.conf
|
|||||||
Source3: %{name}.init.d
|
Source3: %{name}.init.d
|
||||||
Source4: %{name}.sysconfig
|
Source4: %{name}.sysconfig
|
||||||
Source5: madwifi-headers-r1475.tar.bz2
|
Source5: madwifi-headers-r1475.tar.bz2
|
||||||
|
Source6: %{name}.service
|
||||||
Patch0: wpa_supplicant-assoc-timeout.patch
|
Patch0: wpa_supplicant-assoc-timeout.patch
|
||||||
Patch1: wpa_supplicant-driver-wext-debug.patch
|
Patch1: wpa_supplicant-driver-wext-debug.patch
|
||||||
Patch2: wpa_supplicant-wep-key-fix.patch
|
Patch2: wpa_supplicant-wep-key-fix.patch
|
||||||
@ -81,8 +82,10 @@ install -d %{buildroot}/%{_sbindir}
|
|||||||
install -m 0755 wpa_passphrase %{buildroot}/%{_sbindir}
|
install -m 0755 wpa_passphrase %{buildroot}/%{_sbindir}
|
||||||
install -m 0755 wpa_cli %{buildroot}/%{_sbindir}
|
install -m 0755 wpa_cli %{buildroot}/%{_sbindir}
|
||||||
install -m 0755 wpa_supplicant %{buildroot}/%{_sbindir}
|
install -m 0755 wpa_supplicant %{buildroot}/%{_sbindir}
|
||||||
mkdir -p %{buildroot}/%{_sysconfdir}/dbus-1/system.d/
|
install -d %{buildroot}/%{_sysconfdir}/dbus-1/system.d/
|
||||||
install -m 0644 dbus-wpa_supplicant.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
|
install -m 0644 dbus-wpa_supplicant.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
|
||||||
|
install -d %{buildroot}/%{_datadir}/dbus-1/system-services/
|
||||||
|
install -m 0644 %{SOURCE6} %{buildroot}/%{_datadir}/dbus-1/system-services
|
||||||
|
|
||||||
# gui
|
# gui
|
||||||
install -d %{buildroot}/%{_bindir}
|
install -d %{buildroot}/%{_bindir}
|
||||||
@ -118,11 +121,12 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc COPYING ChangeLog README README-Windows.txt eap_testing.txt todo.txt wpa_supplicant.conf examples
|
%doc COPYING ChangeLog README eap_testing.txt todo.txt wpa_supplicant.conf examples
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||||
%{_sysconfdir}/rc.d/init.d/%{name}
|
%{_sysconfdir}/rc.d/init.d/%{name}
|
||||||
%{_sysconfdir}/dbus-1/system.d/%{name}.conf
|
%{_sysconfdir}/dbus-1/system.d/%{name}.conf
|
||||||
|
%{_datadir}/dbus-1/system-services/%{name}.service
|
||||||
%{_sbindir}/wpa_passphrase
|
%{_sbindir}/wpa_passphrase
|
||||||
%{_sbindir}/wpa_supplicant
|
%{_sbindir}/wpa_supplicant
|
||||||
%{_sbindir}/wpa_cli
|
%{_sbindir}/wpa_cli
|
||||||
@ -140,6 +144,8 @@ fi
|
|||||||
- Make SIGUSR1 change debug level on-the-fly; useful in combination with
|
- Make SIGUSR1 change debug level on-the-fly; useful in combination with
|
||||||
the -f switch to log output to /var/log/wpa_supplicant.log
|
the -f switch to log output to /var/log/wpa_supplicant.log
|
||||||
- Stop stripping binaries on install so we get debuginfo packages
|
- Stop stripping binaries on install so we get debuginfo packages
|
||||||
|
- Remove service start requirement for interfaces & devices from sysconfig file,
|
||||||
|
since wpa_supplicant's D-Bus interface is now turned on
|
||||||
|
|
||||||
* Fri Aug 17 2007 Dan Williams <dcbw@redhat.com> - 0.5.7-6
|
* Fri Aug 17 2007 Dan Williams <dcbw@redhat.com> - 0.5.7-6
|
||||||
- Fix compilation with RPM_OPT_FLAGS (rh #249951)
|
- Fix compilation with RPM_OPT_FLAGS (rh #249951)
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
INTERFACES="-iwlan0"
|
INTERFACES=""
|
||||||
DRIVERS="-Dwext"
|
DRIVERS=""
|
||||||
|
Loading…
Reference in New Issue
Block a user