Subversion Repositories programming

Rev

Rev 284 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 284 Rev 285
Line 26... Line 26...
26
###                            Functions                                     ###
26
###                            Functions                                     ###
27
################################################################################
27
################################################################################
28
 
28
 
29
# Anything that needs to be run before the main program starts
29
# Anything that needs to be run before the main program starts
30
# goes in this function
30
# goes in this function
31
pre_startup() {
31
function pre_startup () {
32
}
32
}
33
 
33
 
34
# Anything that needs to be run after the main program finishes
34
# Anything that needs to be run after the main program finishes
35
# goes in this function
35
# goes in this function
36
clean_up() {
36
function clean_up () {
37
    if [ -f "$EMAIL_FILE"]; then
37
    if [ -f "$EMAIL_FILE"]; then
38
        echo "Removing: $EMAIL_FILE";
38
        echo "Removing: $EMAIL_FILE";
39
        rm "$EMAIL_FILE";
39
        rm "$EMAIL_FILE";
40
    fi
40
    fi
41
}
41
}
42
 
42
 
43
# Generate a nice header for the email
43
# Generate a nice header for the email
44
generate_header() {
44
function generate_header () {
45
    echo "raid_checker v1.0"
45
    echo "raid_checker v1.0"
46
    echo "Copyright (c) 2005,2006: Ira W. Snyder (devel@irasnyder.com)"
46
    echo "Copyright (c) 2005,2006: Ira W. Snyder (devel@irasnyder.com)"
47
    echo "====================================================================="
47
    echo "====================================================================="
48
    echo
48
    echo
49
}
49
}