RTXI / rtxi

Tutorials, FAQs, and more at http://rtxi.org/docs
GNU General Public License v3.0
53 stars 15 forks source link

Updating script to the new LSB compliant #95

Closed Hananel-Hazan closed 8 years ago

Hananel-Hazan commented 8 years ago

The header is part of Debian policy change to move to new Init.d Script LSB (Linux Standard Base) compliant for more info: https://wiki.debian.org/LSBInitScripts The Debian policy changes are slow to introduce even for things (for an example, see #291148) which most maintainers agree are good since we have to wait first for many packages to do things in the same way before turning it into policy. Since we want to be LSB compliant, init.d scripts can be adjusted now to be LSB compliant.

sudorook commented 8 years ago

Good catch. We've been installing RTXI for so long, but somehow we never looked into the LSB warnings that always showed up in the terminal.

I've merged your code with some edits into our testing branch. The changes probably won't cause any differences in how the driver is loaded at boot. The init system defaults to enabling the script at every runlevel should no tags be provided, and the tags that are now added in tell the OS to run rtxi_load_analogy whenever it's not shutting down or rebooting.