| 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 |
| | 675 | If you wish to run a script on startup of the Receiver you can install commands in the usercmd.sh to be proformed at the startup of the reciever. |
| | 676 | |
| | 677 | a sample of the usercmd.sh is below: |
| | 678 | |
| | 679 | {{{ |
| | 680 | #!python |
| | 681 | #! / bin / sh |
| | 682 | # Start the user commands here |
| | 683 | echo " [ usercmd.sh ] start" |
| | 684 | # insert code here |
| | 685 | exit |
| | 686 | }}} |
| | 687 | |
| | 688 | the {{{__"# insert code here"__}}} section must be replaced by your commands. |
| | 689 | |
| | 690 | If you place the following code in to the usercmd.sh it will delete every time shift file on the internal hdd on startup of the reciever: |
| | 691 | |
| | 692 | {{{ |
| | 693 | #!python |
| | 694 | rm -f /media/hdd/movie/timeshift*.ts |