Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while IFS=: read boxtype version svn_revision device binary configs description changelog
- do
- if [[ $device == $detdm ]]
- then
- echo -e "$description"
- echo -e "Stahuji OSCam binarku verze $version ($svn_revision) pro vase zarizeni ..."
- wget http://$SERVER_URL/oscam/oscam-lastest-$boxtype -P /tmp/
- if [ "$(pidof oscam)" ]
- then
- echo -e "Ukoncuji bezici OSCam ..."
- killall oscam
- fi
- if [ $binary ]
- then
- echo -e "Mazu aktualni OSCam ..."
- rm -rf $binary
- fi
- echo -e "Instaluji OSCam ..."
- mv /tmp/oscam-lastest-$boxtype $binary
- chmod 755 $binary
- if [ -f $configs/oscam.conf ]
- then
- echo -n "Prejete si smazat a vytvorit novu konfiguraci? [zadejte: ano/ne]: "
- read configuration_toogle
- if [[ $configuration_toogle == "ano" ]]
- then
- rm -rf $configs/oscam.*
- create_configuration
- fi
- else
- create_configuration
- fi
- fi
- done < /tmp/oscam.versions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement