LAPINPT

makemkv betakey to settings.conf

Aug 11th, 2013
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # add to Cron Job weekly
  4. # crontab -e
  5. # @weekly /usr/local/bin/makemkvkey
  6.  
  7. MakeMKVset="/USER/.MakeMKV/settings.conf"
  8.  
  9. betakey=$(lynx -dump -nonumbers -nolist "http://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053" | awk '/Code:$/{getline;print $1}') 1>/dev/null
  10. if [ -n "$inlist" ]; then
  11.    echo "$betakey"
  12.    sed -i 's/^app_Key /#app_Key/' $MakeMKVset
  13.    sed -i "/$betakey/d" $MakeMKVset
  14.    echo "app_Key = \"$betakey\"" >> $MakeMKVset
  15. else
  16.    echo "could not find BETAKEY"
  17. fi
Advertisement
Add Comment
Please, Sign In to add comment