Subversion Repositories configs

Rev

Rev 95 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 95 Rev 128
Line 109... Line 109...
109
 
109
 
110
__kill_pids_term_kill() {
110
__kill_pids_term_kill() {
111
    local try=0
111
    local try=0
112
    local delay=3;
112
    local delay=3;
113
    local pid=
113
    local pid=
-
 
114
    local stat=
-
 
115
    local base_stime=
-
 
116
 
-
 
117
    # We can't initialize stat & base_stime on the same line where 'local'
-
 
118
    # keyword is, otherwise the sourcing of this file will fail for ksh...
114
    local stat=($(< /proc/self/stat))
119
    stat=($(< /proc/self/stat))
115
    local base_stime=${stat[21]}
120
    base_stime=${stat[21]}
116
 
121
 
117
    if [ "$1" = "-d" ]; then
122
    if [ "$1" = "-d" ]; then
118
        delay=$2
123
        delay=$2
119
        shift 2
124
        shift 2
120
    fi
125
    fi
Line 945... Line 950...
945
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
950
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
946
		rc=$?
951
		rc=$?
947
	    fi
952
	    fi
948
	else
953
	else
949
	    [ -z "$key" ] && plymouth --hide-splash
954
	    [ -z "$key" ] && plymouth --hide-splash
950
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
955
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 && success || failure
951
	    rc=$?
956
	    rc=$?
952
	    [ -z "$key" ] && plymouth --show-splash
957
	    [ -z "$key" ] && plymouth --show-splash
953
	fi
958
	fi
954
	if [ $rc -ne 0 ]; then
959
	if [ $rc -ne 0 ]; then
955
	    ret=1
960
	    ret=1