mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
introduce netwarn-iiab-network.desktop
This commit is contained in:
parent
52989599dd
commit
8d42038ad2
2 changed files with 30 additions and 1 deletions
|
@ -94,8 +94,27 @@
|
||||||
- gateway/iiab-internet-on
|
- gateway/iiab-internet-on
|
||||||
- gateway/iiab-internet-off
|
- gateway/iiab-internet-off
|
||||||
|
|
||||||
# mate desktop detection based on 'register: nd_dir'
|
# mate desktop detection based on 'register: nd_dir' in enable_services
|
||||||
|
- name: Check if /usr/share/mate/autostart/ exists
|
||||||
|
stat:
|
||||||
|
path: /usr/share/mate/autostart/
|
||||||
|
register: mate_dir
|
||||||
|
|
||||||
|
- name: Link /usr/share/mate/autostart/netwarn-iiab-network.desktop to {{ iiab_dir }}/scripts/netwarn-iiab-network.desktop
|
||||||
|
file:
|
||||||
|
src: "{{ iiab_dir }}/scripts/netwarn"
|
||||||
|
dest: /usr/share/mate/autostart/netwarn-iiab-network.desktop
|
||||||
|
mode: '0755'
|
||||||
|
state: link
|
||||||
|
when: mate_dir.stat.exists and mate_dir.stat.isdir
|
||||||
|
|
||||||
|
# RpiOS detection based on register: lx in pwd-warnings.yml
|
||||||
|
- name: Is /etc/xdg/lxsession/LXDE-pi a directory?
|
||||||
|
stat:
|
||||||
|
path: /etc/xdg/lxsession/LXDE-pi
|
||||||
|
register: lx
|
||||||
|
|
||||||
|
# clairify usage
|
||||||
|
|
||||||
- name: "Set 'network_installed: True'"
|
- name: "Set 'network_installed: True'"
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
10
scripts/netwarn-iiab-network.desktop
Normal file
10
scripts/netwarn-iiab-network.desktop
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name[en_US]=iiab-network
|
||||||
|
Comment[en_US]=iiab-network
|
||||||
|
Name[en_CA]=iiab-network
|
||||||
|
Comment[en_CA]=iiab-network
|
||||||
|
Type=Application
|
||||||
|
Exec=/usr/local/sbin/netwarn
|
||||||
|
Hidden=false
|
||||||
|
Name=iiab-network
|
||||||
|
Comment=iiab-network
|
Loading…
Reference in a new issue