<?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 auto run script while boot up in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/auto-run-script-while-boot-up/m-p/1451315#M189875</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm facing issue in running simple script while boot up on imx8mm mini board&lt;/P&gt;&lt;P&gt;these are the changes&amp;nbsp;i have made&amp;nbsp;&lt;/P&gt;&lt;P&gt;in init.imx8mm.rc --&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on property:sys.boot_completed=1&lt;BR /&gt;start init-myservice-sh&lt;/P&gt;&lt;P&gt;service init-myservice-sh /vendor/bin/sh /vendor/bin/init.myscript.sh&lt;BR /&gt;class main&lt;BR /&gt;user root&lt;BR /&gt;group root system&lt;BR /&gt;disabled&lt;BR /&gt;oneshot&lt;/P&gt;&lt;P&gt;in evk8mm.mk&lt;/P&gt;&lt;P&gt;#Script&lt;BR /&gt;PRODUCT_COPY_FILES += \&lt;BR /&gt;device/fsl/imx8m/evk_8mm/init.myscript.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.myscript.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my script is in vendor/bin/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what else changes do i need to make for running a script automtically&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 12:01:24 GMT</pubDate>
    <dc:creator>afreenmusarrath23</dc:creator>
    <dc:date>2022-04-29T12:01:24Z</dc:date>
    <item>
      <title>auto run script while boot up</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/auto-run-script-while-boot-up/m-p/1451315#M189875</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm facing issue in running simple script while boot up on imx8mm mini board&lt;/P&gt;&lt;P&gt;these are the changes&amp;nbsp;i have made&amp;nbsp;&lt;/P&gt;&lt;P&gt;in init.imx8mm.rc --&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on property:sys.boot_completed=1&lt;BR /&gt;start init-myservice-sh&lt;/P&gt;&lt;P&gt;service init-myservice-sh /vendor/bin/sh /vendor/bin/init.myscript.sh&lt;BR /&gt;class main&lt;BR /&gt;user root&lt;BR /&gt;group root system&lt;BR /&gt;disabled&lt;BR /&gt;oneshot&lt;/P&gt;&lt;P&gt;in evk8mm.mk&lt;/P&gt;&lt;P&gt;#Script&lt;BR /&gt;PRODUCT_COPY_FILES += \&lt;BR /&gt;device/fsl/imx8m/evk_8mm/init.myscript.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.myscript.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my script is in vendor/bin/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what else changes do i need to make for running a script automtically&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:01:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/auto-run-script-while-boot-up/m-p/1451315#M189875</guid>
      <dc:creator>afreenmusarrath23</dc:creator>
      <dc:date>2022-04-29T12:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: auto run script while boot up</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/auto-run-script-while-boot-up/m-p/1454419#M190083</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1.sepolicy/file_contexts&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;/vendor/bin/init.myscript.sh u&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;object_r&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;:&lt;SPAN&gt;init-myservice-sh&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;_exec&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;s0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.te&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;type init-myservice-sh, domain;
type init-myservice-sh_exec, exec_type, file_type;
#init_daemon_domain(rftoolcopy)

allow init-myservice-sh shell_exec:file { getattr open read };
#allow rftoolcopy toolbox_exec:file { getattr execute read open execute_no_trans };
allow init-myservice-sh storage_file:lnk_file { read   };
allow init-myservice-sh tmpfs:dir { search  };
allow init-myservice-sh mnt_user_file:dir { search  };
allow init-myservice-sh mnt_user_file:lnk_file {  read };
.......
.......
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2022 01:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/auto-run-script-while-boot-up/m-p/1454419#M190083</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-05-07T01:31:54Z</dc:date>
    </item>
  </channel>
</rss>

