Wifi desktop icon

This commit is contained in:
Bob Mottram 2016-09-10 15:20:14 +01:00
parent c6ab0b0cb7
commit fe0461c65c
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
3 changed files with 11 additions and 0 deletions

BIN
img/avatars/wifi.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -533,6 +533,16 @@ function show_desktop_icons {
#echo "Icon=$BROWSER" >> /home/$MY_USERNAME/Desktop/mesh.desktop #echo "Icon=$BROWSER" >> /home/$MY_USERNAME/Desktop/mesh.desktop
#echo 'StartupNotify=true' >> /home/$MY_USERNAME/Desktop/mesh.desktop #echo 'StartupNotify=true' >> /home/$MY_USERNAME/Desktop/mesh.desktop
echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Version=1.0' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Name=Wifi' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Type=Application' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Comment=Check wifi status' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Exec=mate-terminal -e "sudo batman monitor"' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Icon=/usr/share/freedombone/avatars/wifi.jpg' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Terminal=false' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo 'Categories=Application;' >> /home/$MY_USERNAME/Desktop/wifi.desktop
echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/new_identity.desktop echo '[Desktop Entry]' > /home/$MY_USERNAME/Desktop/new_identity.desktop
echo 'Version=1.0' >> /home/$MY_USERNAME/Desktop/new_identity.desktop echo 'Version=1.0' >> /home/$MY_USERNAME/Desktop/new_identity.desktop
echo 'Name=New Identity' >> /home/$MY_USERNAME/Desktop/new_identity.desktop echo 'Name=New Identity' >> /home/$MY_USERNAME/Desktop/new_identity.desktop

View File

@ -290,6 +290,7 @@ function monitor {
batctl if add $IFACE batctl if add $IFACE
ifconfig $IFACE up ifconfig $IFACE up
horst -i $IFACE horst -i $IFACE
start
} }
if ! grep -q "$IFACE" /proc/net/dev; then if ! grep -q "$IFACE" /proc/net/dev; then