You are not logged in.
Hi,
After upgrading it looks like wlan0 is tried to be initiated instead of ra0 during boot.
I use rt2870sta v2.4.0.1, build from AUR.
I have my wireless profile in /etc/network.d/<myprofile>
CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='ra0'
WPA_DRIVER='wext'
SECURITY='wpa'
ESSID='<myprofile>'
KEY='<mykey>'
IP='dhcp'
# Uncomment this if your ssid is hidden
#HIDDEN=yesIf I start with
netcfg <myprofile> Wireless network start ok.
But during boot it do not work.
My rc.conf
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# Note: Using "localtime" is discouraged.
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
# VERBOSE: Verbose level (from 1 to 8). man 3 syslog for level info
#
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Stockholm"
#KEYMAP="sv-latin1.map.gz" #keymap for swedish keyboard
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
VERBOSE="3"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
# Replace every !module by an entry as on the following line in a file in
# /etc/modprobe.d:
# blacklist module
# See "man modprobe.conf" for details.
#
MODULES=(rt2870sta)
# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
# Scan for BTRFS volumes at startup
USEBTRFS="no"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Arch"
# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
# - interface: name of device (required)
# - address: IP address (leave blank for DHCP)
# - netmask: subnet mask (ignored for DHCP)
# - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
interface=
address=
netmask=
gateway=
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"
# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)
# ----------------------------------------------------------------------
# Added Christer Netcfg wireless connection support
#
# Add line: "WIRELESS_INTERFACE="wlan0"
# Remove daemon, "network"
# Add daemon, "net-auto-wireless"
# _____________________________________________________________________
WIRELESS_INTERFACE="ra0"
#WIRELESS_INTERFACE="wlan0"
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
# cupsd=printer daemon, mpd=music player daemon
DAEMONS=(hwclock syslog-ng net-auto-wireless netfs crond dbus cupsd mpd)Any ideas what happen after upgrade?
Best regards,
/Christer
Last edited by agkbill (2011-08-22 20:35:07)
Offline
I've had a working system until last night and now I can't automatically connect to my wireless network.
following the manual setup in the archwiki the wireless works correctly, simplified I do this.
module ipw2200 and firmware are loaded correctly and iwconfig shows my interface as eth0.
ip link set eth0 up
wpa_supplicant -ieth0 -c /etc/wpa_supplicant.conf -B
dhclient eth0and I can connect. However, if I reboot and use net-auto-wireless the connection fails. However, I see the following on the console
Starting netcfg auto-wireless mode for interface wlan0I'm wondering if the fact it's trying to bring up wlan0 that doesn't exist on my system is the cause. The laptop has a wired connection that's blacklisted in modprobe.d as I don't use it.
The network profile in /etc/network.d is the same as the laptop I'm using now to write this.
UPDATE:
WOW! I just had a look at /etc/rc.d/net-auto-wireless and if picks up an environment variable in /etc/conf.d/netcfg and this contained WIRELESS_INTERFACE="wlan0" I changed this to WIRELESS_INTERFACE="eth0" rebooted and my wireless is working again. This isn't something I can recall changing, I've not had to change any config on this laptop for a long long time!
Last edited by GregW (2011-08-20 09:45:37)
Offline
This sound like the same problem I experience.
post: https://bbs.archlinux.org/viewtopic.php?id=124911
/Christer
Last edited by agkbill (2011-08-20 09:42:47)
Offline
This sound like the same problem I experience.
post: https://bbs.archlinux.org/viewtopic.php?id=124911
/Christer
Check this!
UPDATE:
WOW! I just had a look at /etc/rc.d/net-auto-wireless and if picks up an environment variable in /etc/conf.d/netcfg and this contained WIRELESS_INTERFACE="wlan0" I changed this to WIRELESS_INTERFACE="eth0" rebooted and my wireless is working again. This isn't something I can recall changing, I've not had to change any config on this laptop for a long long time!
Offline
I looked at the old files I have in my backup and /etc/rc.d/net-auto-wireless looks different and /etc/conf.d/netcfg do not excist in my old Archlinux instalation.
Must be changes that come with the update.
/etc/rc.d/net-auto-wireless, before
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /usr/lib/network/globals
if [[ ! -x /usr/sbin/wpa_actiond ]]; then
echo "Please install 'wpa_actiond' to use net-auto-wireless"
exit 1
fi
if [ -z "${WIRELESS_INTERFACE}" ]; then
echo "No interface name set. Set it by adding WIRELESS_INTERFACE=\"your_interface\" to rc.conf"
exit 1
fi
case "$1" in
start)
if ! ck_daemon net-auto-wireless; then
exit_stderr "net-auto-wireless has already been started: try \"/etc/rc.d/net-auto-wireless restart\""
fi
# Ensure any device renaming has occurred as intended
for daemon in "${DAEMONS[@]}"; do
if [[ "$daemon" = "${daemon#!}" && "$daemon" = "net-rename" ]]; then
if ck_daemon net-rename; then
/etc/rc.d/net-rename start
fi
fi
done
stat_busy "Starting netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
/usr/bin/netcfg-wpa_actiond "${WIRELESS_INTERFACE}" >/dev/null
if [ $? -eq 0 ]; then
add_daemon net-auto-wireless
stat_done
else
stat_fail
fi
;;
stop)
if ! ck_daemon net-auto-wireless; then
stat_busy "Stopping netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
/usr/bin/netcfg-wpa_actiond stop "${WIRELESS_INTERFACE}" >/dev/null
if [ $? -eq 0 ]; then
rm_daemon net-auto-wireless
stat_done
else
stat_fail
fi
fi
;;
restart)
"$0" stop
sleep 1
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0
# vim: ft=sh ts=4 et sw=4:/etc/rc.d/net-auto-wireless, after
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /usr/lib/network/globals
. /etc/conf.d/netcfg
if [[ ! -x /usr/sbin/wpa_actiond ]]; then
echo "Please install 'wpa_actiond' to use net-auto-wireless"
exit 1
fi
if [ -z "${WIRELESS_INTERFACE}" ]; then
echo "No interface name set. Add to /etc/conf.d/netcfg a line"
echo " WIRELESS_INTERFACE=\"your_interface\""
exit 1
fi
case "$1" in
start)
if ! ck_daemon net-auto-wireless; then
exit_stderr "net-auto-wireless has already been started: try \"/etc/rc.d/net-auto-wireless restart\""
fi
# Ensure any device renaming has occurred as intended
for daemon in "${DAEMONS[@]}"; do
if [[ "$daemon" = "${daemon#!}" && "$daemon" = "net-rename" ]]; then
if ck_daemon net-rename; then
/etc/rc.d/net-rename start
fi
fi
done
stat_busy "Starting netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
/usr/bin/netcfg-wpa_actiond "${WIRELESS_INTERFACE}" >/dev/null
if [ $? -eq 0 ]; then
add_daemon net-auto-wireless
stat_done
else
stat_fail
fi
;;
stop)
if ! ck_daemon net-auto-wireless; then
stat_busy "Stopping netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}"
/usr/bin/netcfg-wpa_actiond stop "${WIRELESS_INTERFACE}" >/dev/null
if [ $? -eq 0 ]; then
rm_daemon net-auto-wireless
stat_done
else
stat_fail
fi
fi
;;
restart)
"$0" stop
sleep 1
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0
# vim: ft=sh ts=4 et sw=4:Changing setting in /etc/conf.d/netcfg from default wlan0 to in my case ra0 solve the problem.
Offline
The question now is if /etc/conf.d/netcfg is replacing the function of the line WIRELESS_INTERFACE=\"your_interface\" to rc.conf ?
Offline
Guys, I suggest further discussion stays here and let's abandon the other thread https://bbs.archlinux.org/viewtopic.php?id=124912 , OK?
Offline
Woah, duplicate posts in both threads. I'm going to merge them and yes, that means some posts will be deleted. I'll let you keep the post counts. ![]()
But next time, don't make the same posts to both threads. It runs afoul the cross-posting rules (see forum rules link in my sig). Mods can merge threads for you. Just report or pm, okay?
Edit: Two posts deleted (duplicates of this and this). These deletes were permanent. If you feel there was something that should have been kept, I'm sorry, they're gone.
Last edited by fsckd (2011-08-20 12:15:31)
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
There's an announcement about this here: http://www.archlinux.org/news/netcfg-266-release/ very easy to miss this, but I fully agree with a comment in a post that has now been deleted about about *where* the SPOT for this declaration should be made. Do we remove it from rc.conf or let /etc/network.d/netcfg manage this in the future
Cheers
GregW
Sorry pasted wrong link in first version
Last edited by GregW (2011-08-22 14:28:23)
Offline
Thank you for sorting this out GregW.
I will mark this thread as solved.
/Christer
Offline