| 678 | | |
| 679 | | |
| 680 | | |
| 681 | | |
| 682 | | |
| 683 | | |
| 684 | | |
| 685 | | |
| | 670 | ---- |
| | 671 | '''4.9 autostart scripting (usercmd)''' [=#point4.9] ([#point4 top of the page]) |
| | 672 | ---- |
| | 673 | |
| | 674 | If you wish to run a script on startup of the Receiver you can install commands in the userc md.sh to be proformed at the startup of the reciever. |
| | 675 | |
| | 676 | |
| | 677 | If you place the following code in to the usergmd.sh it will delete every time shift file on the internal hdd on startup of the reciever: |
| | 678 | |
| | 679 | {{{ |
| | 680 | #!python |
| | 681 | rm /media/hdd/movie/timeshift*.ts -f |
| | 682 | }}} |
| | 683 | |
| | 684 | If you place the following code in to the usergmd.sh it will autostart the FTDI driver. |
| | 685 | {{{ |
| | 686 | #!python |
| | 687 | mknod / dev.static/ttyUSB0 c 188 0" |
| | 688 | }}} |
| | 689 | [[br]] |
| | 690 | |
| | 691 | |
| | 692 | the full path to the |
| | 693 | /mnt/config/usercmd.sh |
| | 694 | |
| | 695 | |
| | 696 | |
| | 697 | |
| | 698 | |
| | 699 | |