Posts by anniman

    doh!! i'm so stupid


    #!/bin/bash
    if ! ps x |grep -v grep |grep -c "oscam -b" >/dev/null
    then
    echo "ok - oscam seems running" && echo `date "+%d/%m/%y %R Starting oscam.."` >> /var/oscamlog/oscam.check
    oscam -b
    else
    echo "ok - oscam seems running" && echo `date "+%d/%m/%y %R Oscam was checked - Running OK"` >> /var/oscamlog/oscam.check
    fi

    I have 4 instances of oscam running at the same time how can I stop this from happening again
    standard scripts
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    sleep 30
    /usr/local/bin/oscam -b
    exit 0



    and etc/crontab..


    # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don't have to run the `crontab'
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.


    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


    # m h dom mon dow user command
    17 * * * * root cd / && run-parts --report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #
    */5 * * * * root /var/script/oscam-checker.sh >/dev/null
    59 23 * * * root /var/script/oscam-backup.sh
    #38 6 * * * root /sbin/reboot

    i moved my server to a location with fibre as my broadband started going really slow. As usual i opened the ports on the router and it works better but for those with boxes that can only use an N line cannot login. my oscam says in the log


    client connected to 10000 port
    2014/06/01 10:50:33 15F8090 c xxxx (0963&000000/FFFF/C4EF/5F:CAD73D51B44BC7370234590E582D4250): cache3 (244 ms) by xxxxxxx (L/2/2/2) - Ary Digital UK (wait_time over) (cwc NDS OK)
    2014/06/01 10:50:33 16C8930 c encrypted newcamd:10000-client 11.111.111.111 granted (ppppppp, au=off)
    2014/06/01 10:50:33 16C8930 c user ppppppppp authenticated successfully (mgcamd)
    2014/06/01 10:50:33 16C8930 c init for reader xxxx not finished -> reject client
    2014/06/01 10:50:33 16C8930 c encrypted newcamd-client 11.111.111.111 rejected (login failure)


    the port is open for newcam and cccam peers can connect ok to their port. i didnt change any configs on the server

    you used to have to generate the boxkey for cccam to open channels after the white card change. it is not needed anymore if you use oscam it does this for you. using early versions of oscam before 8000 will reveal the boxkey the card was paired to