if [ -d "/lib64" ]; then
  ### Fix flash for 64bit Fuduntu
  if [ -e "/usr/lib/nspluginwrapper/npconfig" ]; then
    /usr/lib/nspluginwrapper/npconfig -i /usr/lib/mozilla/plugins/libflashplayer.so >/dev/null 2>&1 || true
  fi
  ### Fix flash for chromium in-case it's installed later
  if [ ! -d "/usr/lib64/chromium-browser/plugins" ]; then
    mkdir -p /usr/lib64/chromium-browser/plugins
  fi
  /usr/lib64/nspluginwrapper/npconfig -i /usr/lib/flash-plugin/libflashplayer.so >/dev/null 2>&1 || true
  ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_64_64.libvlcplugin.so /usr/lib64/chromium-browser/plugins >/dev/null 2>&1 || true
  ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_64_64.libflashplayer.so /usr/lib64/chromium-browser/plugins >/dev/null 2>&1 || true
  ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so /usr/lib64/chromium-browser/plugins >/dev/null 2>&1 || true
fi

#### Don't need this anymore.
if [ -e "/etc/adobe/mms.cfg" ]; then
  rm -f /etc/adobe/mms.cfg 2>/dev/null
fi
