<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: wruta</title>
    <description>The latest articles on DEV Community by wruta (@wruta).</description>
    <link>https://dev.to/wruta</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1041122%2F748ff98c-005f-41f5-92cf-a496a8daf7de.png</url>
      <title>DEV Community: wruta</title>
      <link>https://dev.to/wruta</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wruta"/>
    <language>en</language>
    <item>
      <title>lightdm script</title>
      <dc:creator>wruta</dc:creator>
      <pubDate>Wed, 08 Mar 2023 13:46:16 +0000</pubDate>
      <link>https://dev.to/wruta/lightdm-script-38l2</link>
      <guid>https://dev.to/wruta/lightdm-script-38l2</guid>
      <description>&lt;p&gt;Hello guys &lt;br&gt;
I'm trying to run a script at boot on Ubuntu 22 OS that will check if the device is connected to the internet or not. If it isn't, the script will run the "armbian-config" command to open a system configuration screen and edit the network configuration, the script is running fine but i can't execute it to run automatically at boot.&lt;br&gt;
i tried : &lt;br&gt;
&lt;code&gt;$ sudo nano /usr/share/check_network.sh&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash
ping -c 1 google.com
if [ $? -ne 0 ]; then

  echo "configure your network" | bash -c "read; armbian-config"
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;$ sudo nano /etc/lightdm/lightdm.conf&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Seat:*]
display-setup-script=/usr/share/check_network.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;i also tried &lt;br&gt;
&lt;code&gt;$ sudo nano /usr/share/xgreeters/slick-greeter.desktop&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Exec=/bin/bash /usr/share/check_network.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;any idea would be appreciated..&lt;/p&gt;

</description>
      <category>lightdm</category>
      <category>greeter</category>
      <category>lightdmgreeter</category>
      <category>boot</category>
    </item>
  </channel>
</rss>
