[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/share/se3/sbin/ -> update-share.sh (summary)

(no description)

File Size: 223 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  usage()
  get_action()
  get_level()
  get_defaults_scripts()
  share_add_script()
  share_remove_script()
  share_defaults_scripts()
  scripts_list()

Functions
Functions that are not part of a class:

usage(echo "usage: $0 [-v] -d [share]"echo "usage: $0 [-v] -a share script [arch1 arch2 ...]"echo "usage: $0 [-v] -r share script [arch1 arch2 ..."echo "usage: $0 [-v] -l"echo " -d : Use defaults scripts"echo " -a : Add script to share"echo " -r : Remove script from share"echo " -l : List available scripts"echo " -v : Verbose"exit $1;}function clean_scripts{rm -f $AVAIL/*~}function list_all_shares{IFS=,for file in $SMB_CONFdocat /etc/samba/"$file"|grep "\["|grep "\]"|grep -v global|while read sharedoexpr "$share" : '\[\(.*\)   X-Ref
No description

get_action(ACTION="$(expr "$(grep action: $AVAIL/$1)   X-Ref
No description

get_level(LEVEL="$(expr "$(grep level: $AVAIL/$1)   X-Ref
No description

get_defaults_scripts(for file in "$AVAIL"/*doSCRIPT_VALID_FOR_SHARE=0grep -H "shares_.*:" "$file"|cut -d ':' -f2|cut -d '_' -f2|( while read archdoshares="$(grep -H "shares_$arch:" "$file"|cut -d ':' -f3)   X-Ref
No description

share_add_script(SHARE="$1"SCRIPT="$2"ACTION="$(get_action $SCRIPT)   X-Ref
No description

share_remove_script(SHARE="$1"SCRIPT="$2"shift 2for arch in $@doif (( VERBOSE == 1 )   X-Ref
No description

share_defaults_scripts(rm -rf "$SHARES/$1"/*( VERBOSE == 1)   X-Ref
No description

scripts_list(for script in "$AVAIL"/*dobasename "$script"done}while getopts ":valrd" cmddocase $cmd in a)   X-Ref
No description



Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1