Skip to main content

Thread: Startup script with root privileges


i want add script start @ boot or login & needs root privileges.

code:
sudo echo none > /sys/class/leds/iwl-phy0::rx/trigger  sudo echo none > /sys/class/leds/iwl-phy0::tx/trigger  sudo echo none > /sys/class/leds/iwl-phy0::radio/trigger  sudo echo none > /sys/class/leds/iwl-phy0::assoc/trigger
running script terminal works (wifi led turns off) won't start @ boot. tried adding init.d & running update-rc.d & nothing. tried adding root access file using visudo nopasswd & nothing. doesn't work adding startup applications either.

ideas?

there file called /etc/init.d/rc.local

run last (after of other startup scripts)

it's runs root
this post #7 http://ubuntuforums.org/showthread.php?t=181041

remove sudo's script executed root anyway.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] Startup script with root privileges


Ubuntu

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support