Quote:
Originally Posted by tadgy
Please can you paste your rc.inet1.conf here so I can take a look and hopefully give you a better workflow
|
Sure, these are the non-comment lines in my `rc.inet1.conf`:
Code:
> grep -e '^[^# ]' /etc/rc.d/rc.inet1.conf
IPADDRS[0]=""
USE_DHCP[0]=""
IP6ADDRS[0]=""
USE_SLAAC[0]=""
USE_DHCP6[0]=""
DHCP_HOSTNAME[0]=""
IPADDRS[1]=""
USE_DHCP[1]=""
IP6ADDRS[1]=""
USE_SLAAC[1]=""
USE_DHCP6[1]=""
DHCP_HOSTNAME[1]=""
IPADDRS[2]=""
USE_DHCP[2]=""
IP6ADDRS[2]=""
USE_SLAAC[2]=""
USE_DHCP6[2]=""
DHCP_HOSTNAME[2]=""
IPADDRS[3]=""
USE_DHCP[3]=""
IP6ADDRS[3]=""
USE_SLAAC[3]=""
USE_DHCP6[3]=""
DHCP_HOSTNAME[3]=""
GATEWAY=""
GATEWAY6=""
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
DEBUG_ETH_UP="no"
After posting this thread, I decided to change my `restart_wlan` script to be more permissive. For context, this is executed from `~/.xinitrc` and used to be simply be: `sh /etc/rc.d/rc.inet1 wlan0_restart`:
Code:
#!/bin/bash
#
# Usage: restart_wlan [<iface>]
#
# By default it restarts all network interfaces unless `<iface>` is passeed,
# in which case only `<iface>` is restarted.
#
# <iface> MUST be a valid interface name configured in `rc.inet1.conf(5)`
#
# Examples:
#
# To restart all network interfaces:
#
# $ restart_wlan
#
# To restart the `wlan0` interface:
#
# $ restart_wlan wlan0
INET1_ARG="restart"
if [ -n "$1" ]
then
INET1_ARG="${1}_restart"
fi
sh /etc/rc.d/rc.inet1 $INET1_ARG
I was thinking I could restart **all** network interfaces when starting X and then restart only `wlan0` when necessary; I think this would be the path of least resistance. I'd prefer to **NOT** have a custom `rc.inet1` script as I don't wanna maintain it.
Quote:
Originally Posted by chemfire
I would recommend switching to network manager before writing custom rc.inet1. [...]
|
This is probably the best tradeoff... I've used `rc.inet1.conf` out of comfort because I just uncomment a few lines, add the WPA password and call it a day but maybe getting familiar with the NM setup is probably worthwhile. I didn't even consider it so thanks for the suggestion
I'll give it a try