Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

some boot-up bash scripts

Featured Replies

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

 

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

 

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

 

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.

 

read_ahead

setting/adjusting/getting read-ahead of all drives

 

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.

 

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...)

 

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

 

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

 

Cheers,

Matt

 

the old update_hosts is also included...

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.