#!/bin/sh
CTL=/mod/var/opkg/info/youtube-dl.control
[ -r "$CTL" ] &&
   grep -E '^Version:' "$CTL" |
    ( while IFS=".${IFS}" read _ yy mm dd _; do 
        echo >"/tmp/.ytdl_${yy}${mm}${dd}"
        break
      done )
