You are not logged in.

#26 2007-01-04 10:39:23

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Thinkpad R60E

iwconfig ifconfig

check dmesg for network

errr lspci ...

all I can think of atm


Mr Green

Offline

#27 2007-01-04 13:41:18

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Thinkpad R60E

The internet works fine, but when i login i just run a script to connect me to the network....

Is there anyway to make this script run at boot?


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#28 2007-01-04 13:52:12

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Thinkpad R60E

take a look in /etc/rc.d .... you could add a small script there to run from rc.conf

or rc.local ...

OT me T21 turned up first job clean it up then rebuild it [no wireless ;-(]

HTH


Mr Green

Offline

#29 2007-01-05 00:32:59

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Thinkpad R60E

How would i link a script to the end of rc.conf ?


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#30 2007-01-05 07:25:14

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Thinkpad R60E

As a daemon

If you look in /etc/rc.d there are scripts for running services at boot, I'm sure there is way to do it ....

Surprised there is nothing in Network [in wiki!]

I do not use wireless on my system [even thought I have it!]

Was going to say is wireless working for you now ?


Mr Green

Offline

#31 2007-01-05 08:31:46

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Thinkpad R60E

Yes, bu i manually run the following script, once logged in:

iwconfig eth1 essid crooks
iwconfig eth1 key 99B7289E4E
dhcpcd eth1

All i would like is that to be run at the very end of rc.conf


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#32 2007-01-05 09:06:04

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Thinkpad R60E

This is the slim file from rc.d

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

lockfile=$(grep lockfile /etc/slim.conf |tr -s " " | cut -d" " -f2)
pid=$(pidof -o %PPID /usr/bin/slim)

case "$1" in
  start)
    stat_busy "Starting Simple Login Manager"
    [ -z "$pid" ] && /usr/bin/slim -d >/dev/null 2>&1
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon slim
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Simple Login Manager"
    rm -f $lockfile
    [ ! -z "$pid" ]  && kill $pid >/dev/null 2>&1
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon slim
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 3
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac

exit 0

modify it change name [of course to wireless] chmod +x wireless

put it in /etc/r.cd

then add it to daemons in rc.conf

when system boots it [should!] start you network

HTH


Mr Green

Offline

#33 2007-01-05 16:06:28

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Thinkpad R60E

Ownage, thanks everyone for all this help smile

--

All i cant get working now is my battery meter, according to the wiki the acpi should just work, i try to add the battery meter to the panel, and:

Can't access ACPI events in /var/run/acpid.socket! Make sure the ACPI subsystem is working and the acpid daemon is running.

I installed it via pacman, still the same.


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

Board footer

Powered by FluxBB