Skip to content

Commit 3215ddc

Browse files
committed
Add wpa_supplicant(8) settings for easy WiFi settings.
1 parent f39fdd9 commit 3215ddc

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ctrl_interface=/var/run/wpa_supplicant
2+
ctrl_interface_group=wheel
3+
update_config=1

liveimagefiles/inst.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ PACKAGES=" \
3838
ibus \
3939
adwaita-icon-theme \
4040
arandr \
41+
wpa_gui \
4142
mozc-server mozc-tool ibus-mozc mozc-elisp \
4243
kterm mlterm \
4344
git-base \
@@ -55,6 +56,10 @@ cp ${FILEDIR}/etc.${MACHINE}/ttys /etc
5556
# copy typical mk.conf file
5657
cp ${FILEDIR}/etc/mk.conf /etc
5758

59+
echo "installing wpa_supplicant(8) settings..."
60+
install -o root -g wheel -m 600 ${FILEDIR}/etc/wpa_supplicant.conf /etc
61+
ln -s /usr/share/examples/dhcpcd/hooks/10-wpa_supplicant /libexec/dhcpcd-hooks
62+
5863
echo "installing packages..."
5964
PACKAGESDIR=${FILEDIR}/packages/${MACHINE_ARCH}
6065
(cd ${PACKAGESDIR}; PKG_RCD_SCRIPTS=YES pkg_add $PACKAGES)

liveimagefiles/skel/.xinitrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ if [ -r "$resources" ]; then
2727
xrdb -load "$resources"
2828
fi
2929

30+
# WiFi status in the tray icon
31+
/usr/pkg/sbin/wpa_gui -t &
32+
3033
# for webkit-gtk and adobe-flash-plugin
3134
#export MOZ_PLUGIN_PATH=/usr/pkg/lib/netscape/plugins
3235

liveimagefiles/skel/.xsession

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ if [ -r "$resources" ]; then
2727
xrdb -load "$resources"
2828
fi
2929

30+
# WiFi status in the tray icon
31+
/usr/pkg/sbin/wpa_gui -t &
32+
3033
# for webkit-gtk and adobe-flash-plugin
3134
#export MOZ_PLUGIN_PATH=/usr/pkg/lib/netscape/plugins
3235

0 commit comments

Comments
 (0)