Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small refactoring and comment about systemd compatibility.

  • Loading branch information...
commit e0eaf0e59fecfeffeb2cf8a396ef5cb653c1d133 1 parent b8e6090
@sphynx authored
Showing with 9 additions and 7 deletions.
  1. +9 −7 wifi-select
View
16 wifi-select
@@ -7,22 +7,24 @@
# (C) Ivan N. Veselov <veselov@gmail.com> aka sphynx, 2009-2012
#
-. /etc/conf.d/netcfg
+#
+# do not use printhl (if not available) for better compatibility with `systemd`,
+# see the issue #3: https://github.com/sphynx/wifi-select/issues/3
+#
if [ -f /etc/rc.d/functions ]; then
. /etc/rc.d/functions
+ err() {
+ printhl "$*"
+ }
else
- function printhl()
- {
+ err() {
echo -e "$*"
}
fi
+. /etc/conf.d/netcfg
. /usr/lib/network/network
-err() {
- printhl "$*"
-}
-
#
# list network essids along with its encryption type (none/wep/wpa)
# e.g.: platinum=wpa
Please sign in to comment.
Something went wrong with that request. Please try again.