Run a script at boot time

cancel
Showing results for 
Search instead for 
Did you mean: 

Run a script at boot time

101 Views
afreenmusarrath23
Contributor I

Hello Sir 

I have tried running a script while booting on imx8m mini board by making selinux as permissive. Is it possible to run a script while booting by making selinux as enforcing ? how? please help me out!

Thanku

Labels (1)
0 Kudos
3 Replies

89 Views
b36401
NXP TechSupport
NXP TechSupport

If SELinux is disabled it can not be enabled without rebooting.
However when in enabled you can turn it on and off with "setenforce 1"/"setenforce 0" commands.

0 Kudos

77 Views
afreenmusarrath23
Contributor I
Spoiler
 

I have created a script which should run automatically while booting ! Is it possible to do this without enabling selinux? if yes please tell me how to do that.

0 Kudos

70 Views
b36401
NXP TechSupport
NXP TechSupport

Please note that SELinux only adds the restrictions. So I suppose a script may work without SELinux not worse than with.

0 Kudos