You are not logged in.
I have set up autowifi and it works very good!
One problem though: I would like to change the default printer depending on where I am. so I made this setup for autowifi:
# This is the profile
# running without wep
NETWORK="dhcp"
autowifi_connect() {
lpotions -d MFC7820N
cp /etc/resolv.conf.hasthagen /etc/resolv.conf
brscan-skey
}
autowifi_disconnect() {
brscan-skey -t :
}
the problem is that it doesn't seem torun these scripts.
what am I doing wrong???
Last edited by nahoj (2008-03-31 16:22:05)
Computers never saves time - but they help you produce more in the same timespan...
Offline
First of all, make sure you have the latest autowifi version. Then, when you connect to a network, monitor your syslog (/var/log/messages.log):
Mar 31 11:01:56 artin autowifi[2483]: Starting autowifi session for interface 'wlan0'
Mar 31 11:02:24 artin autowifi[2483]: Interface 'wlan0' connected to network 'eduroam'
Mar 31 11:02:24 artin autowifi-event[2679]: Using profile 'default'
The last line indicates that the profile 'default' is being used, so the script /etc/autowifi/networks/default will be used. To use a different script, you have to name it exactly like the SSID you connect to. Another possibility is to match the profile in /etc/autowifi/regexp, which might be overkill for your needs.
Can you paste the relevant parts of your syslog?
Offline
This part works all right!
Mar 31 07:45:50 autowifi-event[7861]: Interface 'eth1' connected to network 'xxx'
The problem is the commands that are supposed to berun when connected:
'lpoptions -d oki'
or in the profile i copied above:
'lpotions -d mfc7820n'
How can I make those work? Do I have to make something else?
Computers never saves time - but they help you produce more in the same timespan...
Offline
This part works all right!
Mar 31 07:45:50 autowifi-event[7861]: Interface 'eth1' connected to network 'xxx'
What does the next line say ("Using profile ...")? If the right profile is used, the autowifi_connect() function is always run when connected, I am using this with several profiles (in my case, to start a VPN client when necessary).
Offline
It says: 'Using profile xxx' ie it is using the correct file. But the command 'lpoptions -d MFC7820N' is not run. Is there any special way of writing the commands? I have just written them in the same manner as in console.
Computers never saves time - but they help you produce more in the same timespan...
Offline
Sorry! I've solved it!
I had spelled it wrong.
Couldn't understand why it didn't work...
Thanks any way.
Computers never saves time - but they help you produce more in the same timespan...
Offline
Where is gone this package?
Offline
Looks like this is now include in the netcfg package. http://wiki.archlinux.org/index.php/Network_Profiles
Offline