<p dir="ltr"><br>
On Nov 19, 2013 11:15 AM, "Aaditya Bagga" <<a href="mailto:abchk1234@gmail.com">abchk1234@gmail.com</a>> wrote:<br>
><br>
> Aaditya Bagga wrote:<br>
>><br>
>> Aaditya Bagga wrote:<br>
>>><br>
>>> Hey folks!<br>
>>><br>
>>> I have built a package for TLP.<br>
>>><br>
>>> <a href="http://linrunner.de/en/tlp/tlp.html">http://linrunner.de/en/tlp/tlp.html</a><br>
>>> <a href="http://linrunner.de/en/tlp/docs/tlp-developer-documentation.html">http://linrunner.de/en/tlp/docs/tlp-developer-documentation.html</a><br>
>>> <a href="https://github.com/linrunner/TLP">https://github.com/linrunner/TLP</a><br>
>>><br>
>>> The SlackBuild<br>
>>> <a href="http://sourceforge.net/projects/mefiles/files/TLP.tar.gz">http://sourceforge.net/projects/mefiles/files/TLP.tar.gz</a><br>
>>><br>
>>> The Source<br>
>>> <a href="https://github.com/linrunner/TLP/archive/0.4.tar.gz">https://github.com/linrunner/TLP/archive/0.4.tar.gz</a><br>
>>><br>
>>> Its my first SlackBuild so..<br>
>>> I built it and installed it my side.<br>
>>><br>
>>> Note-<br>
>>> See the develepor-documentation linked above.<br>
>>> They have some post install tasks, which I have included in doinst.sh, but there are also some post-remove tasks, which I dont how to incorporate.<br>
>><br>
>> Ok, I tried to improve upon the build script by modifying the configuration files that were being placed in /etc/init.d are now placed as /etc/rc.d/rc.tlp<br>
>> (The same SlackBuild linked above has been updated)<br>
>><br>
>> But I still need to figure out how to add the tlp service to startup..<br>
>><br>
> Ok, I think I figured out how to add it to startup..add it to /etc/rc.d/rc.local, set in doinst.sh<br>
> so thats done.<br>
><br>
> But still dont know how to perform post-removal tasks like removal of this line from rc.local or the other settings done in doinst.sh..<br>
><br>
> _______________________________________________<br>
> SlackBuilds-users mailing list<br>
> <a href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a><br>
> <a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
> Archives - <a href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
> FAQ - <a href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a><br>
></p>
<p dir="ltr">Generally, you want to avoid messing with the user's rc.local. I'd include information on how to add it to rc.local to the README and let them deal with it. You could wrap it in a check for rc.tdp existing so that there's no problem after uninstall, I suppose.</p>

<p dir="ltr">Thanks,<br>
JK</p>