Skip to content

Commit

Permalink
Add wpa_supplicant(8) settings for easy WiFi settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsui committed Feb 16, 2019
1 parent f39fdd9 commit 3215ddc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions liveimagefiles/etc/wpa_supplicant.conf
@@ -0,0 +1,3 @@
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
5 changes: 5 additions & 0 deletions liveimagefiles/inst.sh
Expand Up @@ -38,6 +38,7 @@ PACKAGES=" \
ibus \
adwaita-icon-theme \
arandr \
wpa_gui \
mozc-server mozc-tool ibus-mozc mozc-elisp \
kterm mlterm \
git-base \
Expand All @@ -55,6 +56,10 @@ cp ${FILEDIR}/etc.${MACHINE}/ttys /etc
# copy typical mk.conf file
cp ${FILEDIR}/etc/mk.conf /etc

echo "installing wpa_supplicant(8) settings..."
install -o root -g wheel -m 600 ${FILEDIR}/etc/wpa_supplicant.conf /etc
ln -s /usr/share/examples/dhcpcd/hooks/10-wpa_supplicant /libexec/dhcpcd-hooks

echo "installing packages..."
PACKAGESDIR=${FILEDIR}/packages/${MACHINE_ARCH}
(cd ${PACKAGESDIR}; PKG_RCD_SCRIPTS=YES pkg_add $PACKAGES)
Expand Down
3 changes: 3 additions & 0 deletions liveimagefiles/skel/.xinitrc
Expand Up @@ -27,6 +27,9 @@ if [ -r "$resources" ]; then
xrdb -load "$resources"
fi

# WiFi status in the tray icon
/usr/pkg/sbin/wpa_gui -t &

# for webkit-gtk and adobe-flash-plugin
#export MOZ_PLUGIN_PATH=/usr/pkg/lib/netscape/plugins

Expand Down
3 changes: 3 additions & 0 deletions liveimagefiles/skel/.xsession
Expand Up @@ -27,6 +27,9 @@ if [ -r "$resources" ]; then
xrdb -load "$resources"
fi

# WiFi status in the tray icon
/usr/pkg/sbin/wpa_gui -t &

# for webkit-gtk and adobe-flash-plugin
#export MOZ_PLUGIN_PATH=/usr/pkg/lib/netscape/plugins

Expand Down

0 comments on commit 3215ddc

Please sign in to comment.