Sorry to resurrect this old thread, but...peppebytes wrote: ↑Wed Apr 02, 2014 8:14 pm Hi to all,
i fixed ffmpeg at any boot in this way that remove execution right after 60 seconds after boot:
a. scripts building
1. create script dirCode: Select all
mkdir /share/HDA_DATA/.qpkg/autorun
2. move to script dirCode: Select all
cd /share/HDA_DATA/.qpkg/autorun
3. create script autorun.sh:and insert this:Code: Select all
vi autorun.sh
4. save and exitCode: Select all
#!/bin/sh /share/HDA_DATA/.qpkg/autorun/ffmpeg-x.sh &
6. create script ffmpeg-x.shCode: Select all
:wq!
Code: Select all
vi ffmpeg-x.sh
and insert this:
7. save and exitCode: Select all
#!/bin/sh sleep 60 chmod -x /usr/local/medialibrary/bin/ffmpeg
8. change permission to scripts:Code: Select all
:wq!
Code: Select all
chmod 744 autorun.sh chmod 744 ffmpeg-x.sh
b. enabling auto start in init.d
1. edit qpkg.conf file:Code: Select all
vi /etc/config/qpkg.conf
at the end of file add the follow section:
2. save and exitCode: Select all
[autorun] Name = autorun Version = 0.1 Author = peppebytes Date = 2014-03-31 Shell = /share/HDA_DATA/.qpkg/autorun/autorun.sh Install_Path = /share/HDA_DATA/.qpkg/autorun QPKG_File = autorun.qpkg Enable = TRUE
Code: Select all
:wq!
reboot and enjoy!!
Hi Peppebytes , do you still use the script to fix ffmpeg on your nas?
Just wondering if you could come up with a way to bundle your steps in a qpkg for us ?
it would help so many people, you'd be a hero !