SHARE
TWEET

opera-ffmpeg-updater.sh

a guest Aug 10th, 2015 507 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. OPERA_LIB_DIR=/usr/lib/x86_64-linux-gnu/opera/lib_extra
  4.  
  5. if [ ! -d $OPERA_LIB_DIR ]; then
  6.         exit
  7. fi
  8.  
  9. OPERA_MAJOR_VERSION=`strings /usr/lib/x86_64-linux-gnu/opera/opera | grep OPR/ | sed "s/^OPR\///" | sed 's/\..*//'`
  10.  
  11. if [ ! -f ${OPERA_LIB_DIR}/libffmpeg.so.${OPERA_MAJOR_VERSION} ]; then
  12.         rm -f ${OPERA_LIB_DIR}/libffmpeg.so.*
  13.         ln -s /usr/lib/chromium-browser/libffmpegsumo.so ${OPERA_LIB_DIR}/libffmpeg.so.${OPERA_MAJOR_VERSION}
  14. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top