OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: telemetric_au on May 28, 2007, 06:41:35 am
-
im looking for somewhere to either exec a script from or put in the ifconfig line to assign an ip to my network card on boot before i login but after the sd and cf card slots are initialised... ?
thanks again,
Hayden.
-
im found a way by modifying this from here:
Try adding the following to the end of /etc/rc.d/rc :
if [ $runlevel -eq 5 ]; then
export HOME=/home/root
/usr/X11R6/bin/startx
fi
https://www.oesf.org/forums/index.php?showtopic=17984&hl= (https://www.oesf.org/forums/index.php?showtopic=17984&hl=)
-
except when i login in now through ssh (without having to login on the z) it locks up ??
do i need to login to the z first ??
-
If you poke around on Meanie's site, you can find how to auto-login. That should solve your problems.
-
i had a look into his site, couldnt find the login part, but reading what he has there pointed me in the right direction, that and looking at my /var/log/messages after inserting my cf ethernet...
i found in /etc/pcmcia/
network and network.opts
made some changes and now it assigns an ip automatically apon insert or boot without even having to login ! swell
network.opts:
# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO. In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
*,*,*,*|default,*,*,*)
BOOTP=n
DHCP=n
IPADDR=192.168.129.201
start_fn () { return; }
stop_fn () { return; }
;;
esac