Portál AbcLinuxu, 12. listopadu 2025 10:19
rc-update add net.eth0 defaultpřidáš soubor
/etc/init.d/net.eth0do default runlevelu. Pak už jen stačí v
/etc/conf.d/netnastavit parametry (ip, maska, brána...) a provést
/etc/init.d/net.eth0 restarta je to
#!/sbin/runscript
# Init script for wireless network card
depend() {
before netmount
}
start() {
ebegin "Configuring wireless network card"
iwconfig eth0 essid "nazev-site" mode "ad-hoc" channel "1" rate "11M" key s:"heslo" restricted
eend $? "Failed to configure wireless card."
}
stop() {
ebegin "Restoring wireless network card configuration"
iwconfig eth0 essid "essid" mode "managed" rate "2M" key "off"
eend $? "Failed to restore wireless card configuration."
}
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.