Support > User Customizations

some boot-up bash scripts

(1/1)

Biggy2872:
I've been working on some bash scripts and as these are my first, I thought I would share them and hopefully get some feedback from those more experienced... here is a list of what is here and what it does:

boot_sleep
 is a script i wrote for calling at boot up to sleep a specified amount of time


--- Quote ---Usage: boot_sleep [Option]

       where Option = any [Value] or Help

       Value = Any 1 or 2 digit number to delay in seconds

       Help  =  Provides usage screen
--- End quote ---

clean_up
 cleans up useless files and directories from the flash drive that are installed with user addons (like man pages and docs)

logrotatefix
 script for the posted log rotate fix

paritycheck
 set paritycheck in cron job as specified


--- Quote ---Usage: paritycheck [-f Freq] [-H Hour] [-m Minute] [-M Day of Month] [-d Weekday]
             [-s] [-h] [-r]

       -f Freq = Frequency of the parity check.  Possible values: Bi-Monthly,
            Monthly, Weekly, daily.
           
            If Bi-Monthly or Monthly is selected, the day of month, hour and
            minute argument are needed and if not specified will default to
            the value specified below.  The weekday argument is ignored if
            supplied.
           
            If Weekly is selected, the weekday, hour and minute arguments are
            needed and if not specified will default to the value specified
            below.  The month and day of month arguments are ignored.
           
            If Daily is selected, only the hour and minutes arguments are
            needed and if not specified will default to the value specified
            below.  All other are ignored.
           
       -H Hour = The hour of the day to perform the parity check.  Single
            value or expression compliant with the hour column in cron.
            Defaults to 0 - Midnight
       
       -m Minute = The minute of the day (24 hour clock) to perform the
            parity check.  Single value or expression compliant with the
            minute column in cron.
            Defaults to 00
       
       -M Day of Month = The date of the month to perform the parity check. 
            These are values 1-31. (note: some months don't have 31 days)
            Defaults to 1
       
       -d Weekday =  The day of the week to perform the parity check.  Single
            value or expression compliant with the hour column in cron.
            Including: 0-6 or sun-sat.
            Defaults to 0 - Sunday
       
       -s = status - Gives current status of parity check.  Cannot be used
            with other options.
       
       -r = Remove - Remove scheduled parity check, if exists.  Cannot be used
            with other options.
       
       -h = help - Provides usage screen.  Cannot be used with other options.
       
       -? = help - Provides usage screen.  Cannot be used with other options.
--- End quote ---

read_ahead
 setting/adjusting/getting read-ahead of all drives


--- Quote ---Usage: read_ahead [Value]

       where Value = 256, 512, 1024, 2048, Status or Help.

       256, 512, 1024, 2048 = Set disk read-ahead to value.

       Status = Will check current disk read-ahead and report to user.
       
       Help = Provides usage information screen.
--- End quote ---

smb_mask
 set the appropriate mask for samba

syslog_tempfs
 creates tmpfs for syslog and moves syslog into it (as per joe L log explosion solution)


unmenud
 script to control unmenu (start, stop, restart, status, help...)


--- Quote ---Usage: unmenud [Option]

       where Option = Start, Stop. Restart, Status and Help

       Start = Starts unMENU web Interface via uu script
       
       Stop = Stops unMENU web Interface
       
       Restart = Stops and Starts unMENU.
       
       Status = Reports the Status of unMENU. (opened or closed)

       Help  =  Provides usage screen
--- End quote ---

I have tested them all and have not had any issues with them.

Cheers,
Matt

the old update_hosts is also included...

Navigation

[0] Message Index

Go to full version