<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to successfully execute a script from init.rc in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-successfully-execute-a-script-from-init-rc/m-p/2093899#M237057</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Your init.rc seems correct, did you give your script the needed permission to write a file?&lt;BR /&gt;Which init.rc file are you modifying?&lt;BR /&gt;Also, did you rebuild your android image after the modifications?&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2025 19:07:37 GMT</pubDate>
    <dc:creator>AldoG</dc:creator>
    <dc:date>2025-05-08T19:07:37Z</dc:date>
    <item>
      <title>How to successfully execute a script from init.rc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-successfully-execute-a-script-from-init-rc/m-p/2089229#M236810</link>
      <description>&lt;P&gt;We are using the i.MX8MP EVK and are trying to add a script to run after boot or after file system.we tried the below on &amp;nbsp;init.rc:&lt;/P&gt;&lt;P&gt;on property:sys.boot_completed=1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; start initAsic&lt;/P&gt;&lt;P&gt;service initAsic /system/xbin/script.sh&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; seclabel u:r:init:s0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user root&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group root&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oneshot&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; disabled&lt;/P&gt;&lt;P&gt;The script's contents are,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo "hello" &amp;gt; /data/local/tmp/file.test&lt;BR /&gt;iptables -P FORWARD DROP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, we are not seeing the expected output after boot.The string "hello" is not seen in file.test&lt;BR /&gt;We have also run setenforce 0, but it hasn’t made any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please share step for running script after boot or after file system is up&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;#ANDROID14&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 09:28:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-successfully-execute-a-script-from-init-rc/m-p/2089229#M236810</guid>
      <dc:creator>Shanga</dc:creator>
      <dc:date>2025-04-29T09:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to successfully execute a script from init.rc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-successfully-execute-a-script-from-init-rc/m-p/2093899#M237057</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Your init.rc seems correct, did you give your script the needed permission to write a file?&lt;BR /&gt;Which init.rc file are you modifying?&lt;BR /&gt;Also, did you rebuild your android image after the modifications?&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 19:07:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-successfully-execute-a-script-from-init-rc/m-p/2093899#M237057</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-05-08T19:07:37Z</dc:date>
    </item>
  </channel>
</rss>

