#!/bin/sh
# 
# PRIORITY MANAGER V1.8 BY BUYUKBANG
#
#########################################################################################
#
# PLEASE READ FOLLOWING FILE FOR MORE INFORMATION: /PLUGINS/PriorityManager/readme.txt
#
##################################### EDIT THIS FILE ####################################

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# DON'T LEAVE SPACES BEFORE OR AFTER THE VARIABLE, "=" SIGN OR THE VALUE
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


#---------- TOGGLE PRIORITY MANAGEMENT FUNCTION AND CHANGE RELATED PARAMETERS ----------#

PRIORITY_MANAGEMENT=1
                           # ==> IF YOU WANT PRIORITY MANAGER DO ITS MAIN JOB "PRIORITY
                           # MANAGEMENT, LEAVE THIS SETTING AS 1. IF YOU WANT TO USE
                           # PRIORITY MANAGER JUST FOR ITS OTHER FEATURES, SET THIS AS 0.
                           
MODE=CLIENT                # ==> IF YOU USE THE BOX BEING USED AS A CAM SERVER SET MODE
                           # AS SERVER

DYNAMIC_SLEEP=1            # THIS METHOD CHECKS MENU SWITCHES AND WHEN A MENU SWITCH IS
                           # DETECTED, TRIGGERS LOOP BEFORE MAJOR_SLEEP_TIME VALUE. SO
                           # THIS PROVIDES FASTER RESPONSES FOR PRIORITY MANAGEMENT,
                           # MOUNTS UNMOUNTS. LEAVE THIS VALUE AS 1 IF YOU HAVE NO
                           # PROBLEM WITH PRIORITY MANAGEMENT. SETTING THIS 0 WILL CHANGE
                           # PRIORITY MANAGEMENT WORKING LOGIC BACK TO AS IT WAS IN V1.3.
                           
MAJOR_SLEEP_TIME=30        # ==> THIS IS THE MAXIMUM SLEEP TIME IN SECONDS BETWEEN LOOPS
                           # DO NOT CHANGE UNLESS YOU DON'T KNOW WHAT IT MEANS. TOO LOW
                           # VALUES MAY CAUSE HIGH CPU USAGE RESULTING BAD PERFORMANCE.
                           # TOO HIGH VALUES MAY DELAY ACTIONS LIKE PRIORITY MANAGEMENT
                           # SWITCHES, MOUNTS, UNMOUNTS.

MINOR_SLEEP_TIME=3         # ==> THIS IS THE TIME STEP IN SECONDS FOR SLEEPING BETWEEN
                           # LOOPS WHEN DYNAMIC_SLEEP IS SET TO 1. DO NOT CHANGE UNLESS
                           # YOU DON'T KNOW WHAT IT MEANS. TOO HIGH VALUES WILL DELAY
                           # ACTIONS LIKE PRIORITY MANAGEMENT SWITCHES, MOUNTS, UNMOUNTS.

KILL_TV_EMU=1              # !!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!
                           # IF YOU ACTIVATE THIS FEATURE, TO MAKE IT WORK PROPERLY, YOU
                           # NEED TO REBOOT YOUR BOX AFTER ACTIVATING OR RESTARTING
                           # PRIORITY MANAGER FROM ITS USER INTERFACE.
                           # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                           # ==> IF YOU SET THIS AS 1, ALL TV AND EMU APPLICATIONS ARE
                           # AUTOMATICALLY KILLED AFTER SWITCHING TO MOVIE, RSS OR BROWSER
                           # MENUS. WITH THIS FEATURE, YOUR BOX WILL HAVE MORE FREE SYSTEM
                           # RESOURCES (BOTH PROCESSING POWER -CPU- AND RAM) FOR PLAYING
                           # HIGHER BITRATE MOVIES OR BROWSING THE INTERNET. NOTE: IF YOU
                           # SET MODE AS SERVER, ONLY TV APPLICATIONS ARE KILLED.

WAIT_SECONDS_BEFORE_KILL=30 # ==> BY DELAYING KILLING PROCESS, THIS PREVENTS STOPPPING
                           # AND RESTARTING TV AND EMU (WHICH TAKES SOME TIME) WHEN
                           # ACCIDENTALLY SWITCHING TO MOVIE, RSS OR BROWSER MENUS. SO
                           # TV AND EMU APPLICATIONS ARE KILLED 30 SECONDS LATER AFTER
                           # SWITCHING TO MOVIE OR BROWSER MENUS. THIS IS AN APPROXIMATE
                           # MINUMUM VALUE AND KILLING PROCEESS MAY START A BIT LATER.
                           # THIS VALUE MUST BE BIGGER THAN MAJOR_SLEEP_TIME.
 
RUN_AFTER_RETURN_FROM_KILL=    # ==> IF DEFINED, PRIORITY MANAGER CAN START USER SELECTED
                           # PROGRAMS AFTER SWITCHING BACK TO TV MODE AFTER TV AND EMU 
                           # KILLED. YOU CAN DEFINE YOUR EPG PLUGIN SCRIPT HERE. YOU CAN
                           # DEFINE MULTIPLE COMMAND SEPARETED WITH " &; "




#------------ ADJUST SCREEN SIZE AND PLACEMENT FOR THE PLUGIN USER INTERFACE -----------#

                           # IF PRIORITY MANAGER DOES NOT FIT TO YOUR TV SCREEN PROPERLY 
                           # ADJUST THESE VALUES TO MAKE PRIORITY MANAGER USER INTERFACE 
                           # FIT YOUR TV SCREEN.
TOP_SHIFT=0                # ==> THIS VALUE MUST BE BETWEEN 0-300. DEFAULT VALUE IS 0
LEFT_SHIFT=0               # ==> THIS VALUE MUST BE BETWEEN 0-500. DEFAULT VALUE IS 0
RATIO=100                  # ==> THIS VALUE MUST BE BETWEEN 0-100. DEFAULT VALUE IS 100




#------------------------ SET YOUR HIDDEN CHANNEL LIST PASSWORD  ------------------------#    #HIDE#
                                                                                              #HIDE#
HIDDEN_CHN_LST_PASS=00000                                                                     #HIDE#
                           # ==> THIS IS THE PASSWORD NEEDED FOR ACTIVATION OR SAVING         #HIDE#
                           # HIDDEN CHANNEL LIST. ONLY NUMERIC PASSWORDS ARE ALLOWED, DO      #HIDE#
                           # NOT USE OTHER CHARACTERS IN PASSWORD. THERE IS NO RESTRICTIONS   #HIDE#
                           # ON THE PASSWORD LENGTH. THIS LINE IS NOT SHOWN IN "SETTINGS"     #HIDE#
                           # OPTION IN PLUGIN MENU FOR SECURITY PURPOSES.                     #HIDE#
                                                                                              #HIDE#




#------------------------ TOGGLE DOM SPEED INCREASING FUNCTION  ------------------------#

DOM_SPEED=1
                           # ==> IF YOU WANT TO INCREASE YOUR DOM SPEED JUST SET THIS AS
                           # 1 . PLEASE NOTE THAT THIS FEATURE IS ONLY TESTED WITH THE
                           # ORIGINAL DOM THAT COMES WITH AZBOX HD AND IF YOU REPLACED
                           # YOUR ORIGINAL DOM WITH ANOTHER DOM OR IDE HDD, THE DEVICE
                           # PARAMETERS CHANGED BY THIS FEATURE MAY NOT BE COMPATIBLE
                           # WITH YOUR DEVICE AND IT'S RECOMMENDED TO LEAVE THIS SETTING
                           # AS 0. BUT OF COURSE THIS IS TRIVIAL AND MAY BE IT WORKS IF
                           # YOUR DEVICE HAVE IDENTICAL FEATURES WITH THE ORIGINAL ONE.




#-------------------------- TOGGLE BUSYBOX UPGRADING FUNCTION --------------------------#

UPGRADE_BUSYBOX=0
                           # !!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!
                           # YOU NEED TO DISABLE PRIORITY MANAGER AND REBOOT AZBOX BEFORE
                           # UPGRADING FIRMWARE FROM SETTINGS MENU IF UPGRADE_BUSYBOX IS
                           # SET TO 1. THERE IS NO SUCH A REQUIREMENT FOR UPGRADING FROM
                           # USB BOOT MENU (PATCH.BIN METHOD).
                           # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                           # ==> IF YOU WANT TO UPGRADE YOUR BUSYBOX FROM V1.0 TO V1.16
                           # JUST SET UPGRADE_BUSYBOX AS 1. THIS WILL PROVIDE LOTS OF NEW
                           # COMMANDS AND BUG FIXES, UPGRADES FOR CURRENT COMMAND SET.
                           # CHECK readme.txt FOR LIST OF NEW COMMANDS.



#-------------------------------- TOGGLE CRON FUNCTION ---------------------------------#

CRON=0
                           # ==> IF YOU WANT TO ENABLE CRON SET CRON AS 1 AND EDIT FILE
                           # /PLUGINS/PriorityManager/cron/crontabs/root BEFORE
                           # ACTIVATING PRIORITY MANAGER. CRON PROVIDES VERY FLEXIBLE
                           # UNIX SCHEDULING MECHANISM. FOR MORE INFORMATION:
                           # http://en.wikipedia.org/wiki/Cron




#------------------ TOGGLE SWAP FUNCTION AND CHANGE RELATED PARAMETERS -----------------#

SWAPPER=0
                           # ==> IF YOU WANT TO USE A SWAP FILE TO HELP RAM BY CACHING
                           # SOME PART OF THE MEMORY, JUST SET SWAPPER AS 1 AND EDIT
                           # SWAPDEVICE AND SWAPSIZE PARAMETERS. SWAP FILE USAGE HELPS
                           # LARGE FILE OPERATIONS LIKE RECORDING.

SWAPSIZE=204800            # ==> SIZE OF SWAP FILE IN BYTES.


SWAPDEVICE=/DATA/hdb1      # !!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!
                           # USAGE OF AN EXT2 FORMATTED (FORMATTED FROM AZBOX MENU) FAST
                           # FLASH DISK FOR SWAPPING IS HIGLY RECOMMENDED FOR THE BEST
                           # CPU PERFORMANCE. IO OPERATIONS ON SWAP FILE CONSUME LESS CPU
                           # POWER WITH EXT2. 
                           # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                           # ==> CHOOSE DEVICE, WHERE TO CREATE SWAPFILE
                           # FOR INTERNAL HDD DISK SET SWAPDEVICE AS  : /DATA/hdb1
                           # FOR USB1 HDD/FLASH DISK SET SWAPDEVICE AS: /DATA/usb1/sda1
                           # FOR USB2 HDD/FLASH DISK SET SWAPDEVICE AS: /DATA/usb2/sda1




#----------------------------- TOGGLE DEEP SLEEP FUNCTION ------------------------------#

DEEP_SLEEP=0
                           # ==> IF YOU WANT TO KILL ALL UNNECESSARY APPLICATIONS WHEN
                           # BOX GOES TO SLEEP MODE TO IMPROVE DOWNLOADING SPEED OF FTP,
                           # TRANSMISSION, AMULE, SMB, CIF, JUST SET DEEP_SLEEP AS 1.
                           # THERE ARE SOME SIDE EFFECTS OF DEEP SLEEP:
                           # 1. ACTIVATING DEEP SLEEP FUNCTION CAUSES AZBOX NOT WAKE UP
                           #    AND AZBOX REBOOTS INSTEAD OF WAKEUP AFTER GOING INTO DEEP
                           #    SLEEP MODE.
                           # 2. NEITHER "RESERVED PROGRAMS" NOR "TIMER" JOBS WILL WORK
                           #    WHILE BOX IS IN DEEP SLEEP MODE!




#--------------------------- TOGGLE MOVING PLUGINS FUNCTION ----------------------------#

MOVE_PLUGINS=0
                           # !!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!
                           #     BACKUP YOUR PLUGINS BEFORE ACTIVATING THIS FEATURE
                           # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                           # ==> IF YOU WANT TO MOVE ALL PLUGINS FROM INTERNAL STORAGE
                           # (DOM) TO INTERNAL HDD OR USB STORAGES, SET MOVE_PLUGINS AS 1
                           # SET TARGET_PATH WITH A DIRECTORY THAT ALL PLUGINS WILL BE
                           # MOVED TO, ACTIVATE / REACTIVATE PRIORITY MANAGER AND CHECK
                           # LOGS FOR PLUGIN MOVE OPERATION. IT'S STRONGLY SUGGESTED TO
                           # USE A FLASHDISK INSTEAD OF AN HDD, SINCE SOME PLUGINS ALWAYS
                           # WORK BACKGROUND WHICH MAY CAUSE YOUR HDD NOT TO SLEEP.
                           # IT'S STRONGLY SUGGESTED TO USE AN EMPTY TARGET DEVICE,
                           # OTHERWISE FOLDERS IN THIS DEVICE ARE LISTED AS ENTRIES IN
                           # PLUGINS MENU OR MAY CAUSE SOME OTHER PROBLEMS. UNFORTUNATELY
                           # SOME AUTO-GENERATED FOLDERS LIKE pvrfile, recordfile AND
                           # lost+found ALWAYS LISTED AS ENTRIES IN PLUGINS MENU, BUT
                           # THESE FOLDERS ARE TESTED AND THEY CAUSES NO OTHER PROBLEMS.
                           # USING AN UNEMPTY TARGET DEVICE IS TRIVIAL. CURRENTLY I'M 
                           # USING A FLASHDISK BOTH AS SWAPDEVICE AND TARGET_DEVICE WITH
                           # NO PROBLEM. BUT THIS IS NOT GUARANTEED.

PLUGINS_BACKUP_PATH=/DATA/hdb1/PLUGINS_BACKUP # ==> PRIORITY MANAGER WILL TAKE A FULL
                           # BACKUP OF PLUGINS FOLDER BEFORE MOVING PLUGINS. SET A VALID
                           # AND WRITABLE PATH IN A DEVICE WITH ENOUGH FILE SPACE.

TARGET_DEVICE=/dev/hdb1    # ==> SET A USB STORAGE OR INTERNAL HDD THAT ALL PLUGINS WILL
                           # BE MOVED TO ITS ROOT. BE SURE THAT THERE IS ENOUGH FILE 
                           # SPACE IN THIS DEVICE. 
                           # FOR INTERNAL HDD DISK   : /dev/hdb1
                           # FOR USB1 HDD/FLASH DISK : /dev/sda1 
                           # FOR USB2 HDD/FLASH DISK : /dev/sda2

TARGET_DEVICE_SECONDS=30   # ==> THIS IS THE MAXIMUM WAIT TIME IN SECONDS FOR MOUNTING OF
                           # TARGET_DEVICE ON BOOTS.




#------------ TOGGLE SCHEDULED BACKUP FUNCTION AND CHANGE RELATED PARAMETERS -----------#

SCHEDULED_BACKUP=0

                           # ==> IF YOU WANT TO TAKE A FULL BACKUP OF /DISK2 AND /PLUGINS
                           # FOLDERS ON A SCHEDULE, SET SCHEDULED_BACKUP AS 1, DEFINE
                           # BACKUP_PATH, COMPRESSED_BACKUP, 
                           

BACKUP_PATH=/DATA/hdb1/BACKUP # ==> PRIORITY MANAGER WILL TAKE A FULL BACKUP OF /DISK2
                           # AND /PLUGINS FOLDERS UNDER THIS PATH. SET A VALID AND
                           # WRITABLE PATH IN A DEVICE WITH ENOUGH FILE SPACE.      
                           
COMPRESSED_BACKUP=0        # COMPRESSED_BACKUP=0 MEANS NO COMPRESSION WHICH ONLY COPIES
                           # FILES AND FOLDERS. COMPRESSED_BACKUP=1 ACTIVATES COMPRESSION.
                           # COMPRESSION IS NOT RECOMMENDED UNLESS YOU HAVE FEW SPACE IN
                           # YOUR BACKUP_PATH.

NUMBER_OF_BACKUPS=15       # THIS DEFINES MAXIMUM NUMBER OF BACKUPS. AFTER REACHING THIS
                           # NUMBER, THE OLDEST BACKUP WILL BE DELETED AUTOMATICALLY.

BACKUP_FREQUENCY=1         # THIS IS THE NUMBER OF DAYS BETWEEN BACKUPS.




#---------- TOGGLE SLEEP/WAKEUP ACTIONS FUNCTION AND CHANGE RELATED PARAMETERS ---------#

ACTIONS=0
                           # ==> PRIORITY MANAGER CAN START USER SELECTED PROGRAMS WHEN
                           # AZBOX SLEEPS. WHEN AZBOX WAKES UP AGAIN THERE ARE 3 THINGS
                           # THAT PRIORITY MANAGER CAN DO AS AN OPPOSITE ACTION: KILL IT,
                           # START ANOTHER SCRIPT TO STOP IT OR SIMPLY DO NOTHING (CAN BE
                           # USEFUL IF IT'S A AUTO-TERMINATED PROGRAM OR SCRIPT).
                           # WHEN A SCHEDULED RECORDING STARTS, ALL WAKEUP_ACTION'S ARE
                           # EXECUTED TO STOP SLEEP_ACTION'S. SLEEP_ACTION'S ARE EXECUTED
                           # AGAIN AFTER RECORDING FINISHES. TO USE THIS FEATURE SET
                           # ACTIONS AS 1 AND DEFINE SLEEP_ACTION[1], SLEEP_ACTION[2],...,
                           # SLEEP_ACTION[N] AND OPPOSITE ACTIONS WAKEUP_ACTION[1], 
                           # WAKEUP_ACTION[2],..., WAKEUP_ACTION[N]. ALWAYS USE FULL PATH
                           # OF PROGRAMS. YOU CAN DEFINE AS MANY OF PROGRAMS AS YOU WANT.
                           # START USING 1 AS THE FIRST INDEX AND USE SEQUENTIAL NUMBERS.
                           # DON'T FORGET TO USE HEADING AND TRAILING " SIGNS FOR EVERY
                           # PROGRAM[]. BESIDES THAT USE "/bin/sh " FOR ALL SCRIPTS SO
                           # THAT THEY CAN BE KILLED WHEN NEEDED.

WAIT_MINUTES=2             # ==> WAIT_MINUTES IS USED AS THE WAITING TIME IN MINUTES
                           # TO START ACTIONS AFTER AZBOX SLEEPS. ADJUST THIS VALUE AS
                           # YOUR WISH.

#!!!! BELOW DEFINITIONS ARE ONLY EXAMPLES. REMOVE ALL BEFORE ADDING YOUR DEFINITONS !!!!#

SLEEP_ACTION[1]="/bin/sh /DISK2/transmission/trstart.sh"  # EXECUTES WHEN AZBOX SLEEPS"
WAKEUP_ACTION[1]="/bin/sh /DISK2/transmission/trstop.sh"  # EXECUTES WHEN AZBOX WAKES UP"
                           
SLEEP_ACTION[2]="/DATA/hdb1/opt/amuled"  # EXECUTES WHEN AZBOX SLEEPS"
WAKEUP_ACTION[2]=KILL  # THIS MEANS "KILL PROGRAM DEFINED IN SLEEP_ACTION[1] WHEN AZBOX WAKES UP"

SLEEP_ACTION[3]="/bin/sh ./script1.sh parameter1 parameter2"  # EXECUTES WHEN AZBOX SLEEPS"
WAKEUP_ACTION[3]=  # THIS MEANS DO NOTHING FOR PROGRAM DEFINED IN SLEEP_ACTION[3] WHEN WAKES UP"

SLEEP_ACTION[4]=KILL  # THIS MEANS "KILL PROGRAM DEFINED IN WAKEUP_ACTION[4] WHEN AZBOX SLEEPS"
WAKEUP_ACTION[4]="/bin/sh ./script2.sh"  # EXECUTES WHEN AZBOX WAKES UP"

SLEEP_ACTION[5]=  # THIS MEANS DO NOTHING FOR PROGRAM DEFINED IN WAKEUP_ACTION[5] WHEN AZBOX SLEEPS"
WAKEUP_ACTION[5]="/bin/sh ./script3.sh"  # EXECUTES WHEN AZBOX WAKES UP"




#--------------- TOGGLE CIF/NFS FUNCTIONS AND CHANGE RELATED PARAMETERS ----------------#

CIF_MOUNT=0
                           # ==> IF YOU WANT TO MOUNT CIF SHARES OF YOUR FILE SERVER TO
                           # AZBOX, JUST SET CIF_MOUNT AS 1, EDIT THE CIF[] PARAMETERS
                           # FOR SHARE PATHS, LOCAL MOUNT FOLDERS, USERNAMES AND
                           # PASSWORDS. TO DISABLE CIF MOUNT FEATURE SET CIF_MOUNT AS 0 .

NFS_MOUNT=0
                           # ==> IF YOU WANT TO MOUNT NFS SHARES OF YOUR FILE SERVER TO
                           # AZBOX, SET NFS_MOUNT AS 1, EDIT THE NFS[] PARAMETERS FOR
                           # SHARE PATHS AND LOCAL MOUNT FOLDERS. TO DISABLE NFS MOUNT
                           # FEATURE SET NFS_MOUNT AS 0 .
                           
REMOTE_IP=192.168.2.12     # => IP ADDRESSES OF THE REMOTE FILE SERVER

CHECK_PATH=/DATA/movie/film # => THIS PATH IS USED TO CHECK IF FILE SERVER IS ONLINE OR
                            # NOT. SO USE AN EMPTY PATH THAT WILL NOT BE EMPTY AFTER
                            # MOUNTING. FOR EXAMPLE IF YOUR FILE SERVER IS A PC WITH
                            # CIF/NFS MOUNTS ON IT, WHEN YOU REBOOT YOUR PC, AZBOX FILE
                            # BROWSER NORMALLY FREZEES WHEN TRYING TO BROWSE OFLINE MOUNT
                            # POINTS. PRIORITY MANAGER PREVENTS THIS BY CONTINUOUSLY
                            # CHECKING CHECK_PATH IN THE BACKGROUND AND UNMOUNTS OFFLINE
                            # SHARES IF NEEDED.

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# PLEASE NOTE THAT YOU HAVE TO CREATE MOUNT FOLDERS BEFORE ENABLING CIF MOUNT OR NFS MOUNT 
# FEATURES. IN BELOW EXAMPLES THESE FOLDERS ARE /DATA/movie/film, /DATA/movie/download,
# /DATA/movie/dvd, /DATA/music/PC, /DATA/picture/PC
#
# BELOW DEFINITIONS ARE ONLY EXAMPLES. REMOVE ALL BEFORE ADDING YOUR DEFINITONS.
# 
# USE THE SAME NFS MOUNT PARAMETERS (rsize,wsize) AS THAT'RE SET ON YOUR NFS FILE SERVER.
# BELOW SETTINGS IN THE EXAMPLES ARE OPTIMEZED FOR THE BEST PERFORMANCE. BUT NFS FILE
# SERVER IS ALSO NEEDED TO BE ADJUSTED FOR THESE SETTINGS. FOR MORE INFORMATION:
# http://nfs.sourceforge.net/nfs-howto/ar01s05.html
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

CIF[1]="mount.cifs //$REMOTE_IP/film /DATA/movie/film -o username=XXXXX,password=YYYYY"
CIF[2]="mount.cifs //$REMOTE_IP/download /DATA/movie/download -o username=XXXXX,password=YYYYY"
CIF[3]="mount.cifs //$REMOTE_IP/dvd /DATA/movie/dvd -o username=XXXXX,password=YYYYY"
CIF[4]="mount.cifs //$REMOTE_IP/mp3 /DATA/music/PC -o username=XXXXX,password=YYYYY"
CIF[5]="mount.cifs //$REMOTE_IP/pictures /DATA/picture/PC -o username=XXXXX,password=YYYYY"

NFS[1]="mount -t nfs $REMOTE_IP:/film /DATA/movie/film -o nolock,rsize=32768,wsize=32768"
NFS[2]="mount -t nfs $REMOTE_IP:/download /DATA/movie/download -o nolock,rsize=32768,wsize=32768"
NFS[3]="mount -t nfs $REMOTE_IP:/dvd /DATA/movie/dvd -o nolock,rsize=32768,wsize=32768"
NFS[4]="mount -t nfs $REMOTE_IP:/mp3 /DATA/music/PC -o nolock,rsize=32768,wsize=32768"
NFS[5]="mount -t nfs $REMOTE_IP:/pictures /DATA/picture/PC -o nolock,rsize=32768,wsize=32768"




#----- TOGGLE VERBOSE (DEBUG) LOG CREATION FUNCTION AND CHANGE RELATED PARAMETERS ------#

VERBOSE_LOG=0
                           # ==> IF YOU HAVE ANY PROBLEMS WITH PRIORITY MANAGER, CHANGE 
                           # VERBOSE_LOG AS 1, REACTIVATE PRIORITY MANAGER FROM
                           # PLUGINS-->PRIORITYMANAGER-->ACTIVATE/REACTIVATE , THEN
                           # /Download/PriorityManager_Verbose_Log IS CREATED. THIS IS A
                           # VERBOSE LOG FILE. COLLECT DATA WITH THIS OPTION SET AS 1,
                           # WITHOUT STOPPING, RESTARTING, REACTIVATING OR DEACTIVATING
                           # PRIORITY MANAGER, BECAUSE ALL THIS OPERATIONS DELETE ALL OLD
                           # LOG FILES. THEN SEND AN E-MAIL TO buyukbang@gmail.com
                           # CONTAINING THE APPROXIMATE TIME THAT PROBLEM OCCURS AND
                           # PriorityManager_Verbose_Log. DON'T FORGET TO RESET
                           # VERBOSE_LOG AS 0 AND RESTART PRIORITY MANAGER AFTER BUG
                           # REPORT.
                           
MAX_LOG_SIZE=1048576       # ==> THIS LIMITS FILE SIZE OF PriorityManager_Verbose_Log
                           # WITH DEFINED VALUE IN BYTES.

