search for: esac

Displaying 20 results from an estimated 902 matches for "esac".

2014 Oct 12
2
Bug#764912: xen-utils-common: needs to apply SE Linux labels after creating directories in start script
..._real return $? } xend_restart() { if [ -z "$XEND" ] || [ "$(basename "$TOOLSTACK")" != xm ]; then return 0 fi log_progress_msg "xend" xend_stop_real case "$?" in 0|1) xend_start_real case "$?" in 0) ;; *) return 2 ;; esac ;; *) return 2 ;; esac return 0 } xend_start_real() { $XEND status && return 1 $XEND start || return 2 i=0 while [ $i -lt 10 ]; do $XEND status && return 0 || true i=$(($i + 1)) sleep 1 done return 2 } xend_stop_real() { log_progress_msg "xend" $XEND st...
2003 May 01
1
ldAIX4 does not generate Rlapack.exp (PR#2893)
...4, several object file names with filename extensions of .lo. The ldAIX4 script did not generate the file etc/Rlapack.exp until I changed ldAIX4 as follows: Original context: # Check for object or archive files ofiles="" for arg; do case $arg in *.o) ofiles="$ofiles $arg";; esac case $arg in *.a) ofiles="$ofiles $arg";; esac done Changed context: # Check for object or archive files ofiles="" for arg; do case $arg in *.o) ofiles="$ofiles $arg";; esac case $arg in *.lo) ofiles="$ofiles $arg";; esac case $arg in *.a) of...
2014 Mar 23
1
Bug#742397: xen-utils-common: /etc/init.d/dom0weight is hardcoded to use xm
..._real return $? } xend_restart() { if [ -z "$XEND" ] || [ "$(basename "$TOOLSTACK")" != xm ]; then return 0 fi log_progress_msg "xend" xend_stop_real case "$?" in 0|1) xend_start_real case "$?" in 0) ;; *) return 2 ;; esac ;; *) return 2 ;; esac return 0 } xend_start_real() { $XEND status && return 1 $XEND start || return 2 i=0 while [ $i -lt 10 ]; do $XEND status && return 0 || true i=$(($i + 1)) sleep 1 done return 2 } xend_stop_real() { log_progress_msg "xend" $XEND st...
2012 Jun 24
3
Bug#678719: xen-utils-common: please label all created directories for SE Linux
..._real return $? } xend_restart() { if [ -z "$XEND" ] || [ "$(basename "$TOOLSTACK")" != xm ]; then return 0 fi log_progress_msg "xend" xend_stop_real case "$?" in 0|1) xend_start_real case "$?" in 0) ;; *) return 2 ;; esac ;; *) return 2 ;; esac return 0 } xend_start_real() { $XEND status && return 1 $XEND start || return 2 i=0 while [ $i -lt 10 ]; do $XEND status && return 0 || true i=$(($i + 1)) sleep 1 done return 2 } xend_stop_real() { log_progress_msg "xend" $XEND st...
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...1) + printf "\nRestarting collectd configuration.\n" + break + ;; + 2) + printf "\nAborting collectd configuration.\n" + return + ;; + esac done done } diff --git a/scripts/ovirt-config-logging b/scripts/ovirt-config-logging index ba661c3..bb0f082 100755 --- a/scripts/ovirt-config-logging +++ b/scripts/ovirt-config-logging @@ -146,27 +146,30 @@ function prompt_user { printf "\n" printf "\...
2016 Feb 25
1
[PATCH] fish: Set program name correctly for virt-{copy, tar}-{in, out} programs.
...ish/virt-copy-out | 2 +- fish/virt-tar-in | 2 +- fish/virt-tar-out | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fish/virt-copy-in b/fish/virt-copy-in index d1be1b2..4bdccfb 100755 --- a/fish/virt-copy-in +++ b/fish/virt-copy-in @@ -24,4 +24,4 @@ for arg in $@; do esac done -exec guestfish --rw -i copy-in "$@" +exec -a "$0" guestfish --rw -i copy-in "$@" diff --git a/fish/virt-copy-out b/fish/virt-copy-out index 2648a4d..ff69388 100755 --- a/fish/virt-copy-out +++ b/fish/virt-copy-out @@ -24,4 +24,4 @@ for arg in $@; do esac...
2010 Sep 19
3
Bug#597403: xen-utils-common: need to run restorecon in /etc/init.d/xend on SE Linux systems
...STORED_ARGS --pid-file="$XENSTORED_PIDFILE" \ || return 2 } case "$1" in start) log_daemon_msg "Starting $DESC" modules_setup [ -x /sbin/restorecon ] && /sbin/restorecon -R /dev xenfs_setup case "$?" in 0) ;; *) log_end_msg 1; exit ;; esac capability_check case "$?" in 0) ;; *) log_end_msg 255; exit ;; esac xenstored_start case "$?" in 0|1) ;; *) log_end_msg 1; exit ;; esac xenconsoled_start case "$?" in 0|1) ;; *) log_end_msg 1; exit ;; esac xend_start case "$?" in 0|1...
2009 Oct 09
1
[PATCH node] validify ipv4/ipv6 static/dhcp choice else loop
...+), 48 deletions(-) diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index 7d4e363..45f7129 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-config-networking @@ -160,56 +160,66 @@ function configure_interface return;; esac - read -ep "Enable IPv4 support ([S]tatic IP, [D]HCP, [N]o or [A]bort)? " - case $REPLY in - D|d) - BR_CONFIG="$BR_CONFIG\nset $BR_ROOT/BOOTPROTO dhcp" - ;; - S|s) - pr...
2007 Oct 24
2
R trunk (2.7) build fails with -fpic, needs -fPIC (PR#10372)
...: configure =================================================================== --- configure (revision 43265) +++ configure (working copy) @@ -32806,7 +32806,7 @@ cpicflags="-fPIC" ;; *) - cpicflags="-fpic" + cpicflags="-fPIC" ;; esac shlib_ldflags="-shared" @@ -32817,7 +32817,7 @@ fpicflags="-fPIC" ;; *) - fpicflags="-fpic" + fpicflags="-fPIC" ;; esac fi @@ -32827,7 +32827,7 @@ cxxpicflags="-fPIC" ;; *) - cxxpicf...
2015 Feb 06
2
[PATCH v3] virt-copy, virt-tar: show help for -h
Shows manpage for virt-copy-in,out and virt-tar-in,out when user supplies -h as a parameter instead of listing unrelated commands with descriptions. Maros Zatko (1): virt-copy, virt-tar: show help for -h fish/virt-copy-in | 9 +++++++++ fish/virt-copy-out | 9 +++++++++ fish/virt-tar-in | 9 +++++++++ fish/virt-tar-out | 9 +++++++++ 4 files changed, 36 insertions(+) -- 1.9.3
2018 Dec 14
0
[PATCH nbdkit 3/3] tests: Test export flags (eflags).
...gs; do + [ $(( eflags & ${!f} )) -ne 0 ] && echo -n " $f" + done + echo +} + +fail () +{ + echo "$@" + exit 1 +} + +# no -r +# can_write=false + +do_nbdkit <<'EOF' +case "$1" in + get_size) echo 1M ;; + *) exit 2 ;; +esac +EOF + +[ $eflags -eq $(( HAS_FLAGS|READ_ONLY )) ] || + fail "expected HAS_FLAGS|READ_ONLY" + +# -r +# can_write=false + +do_nbdkit -r <<'EOF' +case "$1" in + get_size) echo 1M ;; + *) exit 2 ;; +esac +EOF + +[ $eflags -eq $(( HAS_FLAGS|READ_ONLY )) ] ||...
2019 May 10
0
[nbdkit PATCH 1/9] server: Internal hooks for implementing NBD_CMD_CACHE
...6 @@ #!/usr/bin/env bash # nbdkit -# Copyright (C) 2018 Red Hat Inc. +# Copyright (C) 2018-2019 Red Hat Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are @@ -94,8 +94,8 @@ case "$1" in esac EOF -[ $eflags -eq $(( HAS_FLAGS|READ_ONLY|SEND_DF )) ] || - fail "expected HAS_FLAGS|READ_ONLY|SEND_DF" +[ $eflags -eq $(( HAS_FLAGS|READ_ONLY|SEND_DF|SEND_CACHE )) ] || + fail "expected HAS_FLAGS|READ_ONLY|SEND_DF|SEND_CACHE" #----------------------------------------...
2014 Nov 21
3
Bug#770456: Please start a qemu process in domain 0.
...$QEMU ] || return 0 + log_progress_msg "qemu" + qemu_stop_real + return $? +} + +qemu_restart() +{ + [ -x $QEMU ] || return 0 + log_progress_msg "qemu" + qemu_stop_real + case "$?" in + 0|1) + qemu_start_real + case "$?" in + 0) ;; + *) return 2 ;; + esac + ;; + *) return 2 ;; + esac + return 0 +} + +qemu_start_real() +{ + start-stop-daemon --start --quiet --pidfile "$QEMU_PIDFILE" --exec "$QEMU" --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile "$QEMU_PIDFILE" --exec "$QEMU&quo...
2018 Dec 14
2
Re: [PATCH nbdkit 1/3] sh: Implement inline scripts.
....M. Jones wrote: > This implements something like a readonly 1MB disk reading as zeroes: > > nbdkit sh script=- <<'EOF' > case "$1" in > get_size) echo 1M ;; > pread) dd if=/dev/zero count=$3 iflag=count_bytes ;; > *) exit 2 ;; > esac > EOF > > Use of "-" is analogous to reading passwords from stdin. > --- > @@ -26,6 +30,19 @@ like this: > You may have to add further C<key=value> arguments to the command > line. > > +=head2 Inline shell scripts > + > +It is also possible...
2017 Nov 10
3
Postlogin script
...ble in condition IF use IP addresses as range or with mask (because > I've more than one web servers) ? Of course -- many ways to skin this cat. If you have only a handful of IPs case "$IP" in 12.34.56.78) exec "$@";; 23.45.67.89) exec "$@";; ... esac If you have CIDR that align neatly on octet boundaries case "$IP" in 12.34.56.*) exec "$@";; 23.45.67.*) exec "$@";; ... esac The toughest situation (using script techniques) is for CIDR ranges just shy of a full octet boundary e.g. /25. You can use &q...
2014 Nov 27
0
Bug#770456: Bug#770456: Please start a qemu process in domain 0.
...$QEMU ] || return 0 + log_progress_msg "qemu" + qemu_stop_real + return $? +} + +qemu_restart() +{ + [ -x $QEMU ] || return 0 + log_progress_msg "qemu" + qemu_stop_real + case "$?" in + 0|1) + qemu_start_real + case "$?" in + 0) ;; + *) return 2 ;; + esac + ;; + *) return 2 ;; + esac + return 0 +} + +qemu_start_real() +{ + start-stop-daemon --start --quiet --pidfile "$QEMU_PIDFILE" --exec "$QEMU" --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile "$QEMU_PIDFILE" --exec "$QEMU&quo...
2013 Apr 26
2
Transferring R to another computer, R_HOME_DIR
...en case "linux-gnu" in linux*) run_arch=`uname -m` case "$run_arch" in x86_64|mips64|ppc64|powerpc64|sparc64|s390x) libnn=lib64 libnn_fallback=lib ;; *) libnn=lib libnn_fallback=lib64 ;; esac if [ -x "/usr/${libnn}/R/bin/exec/R" ]; then R_HOME_DIR=/usr/lib64/R elif [ -x "/usr/${libnn_fallback}/R/bin/exec/R" ]; then R_HOME_DIR=/usr/lib64/R ## else -- leave alone (might be a sub-arch) fi ;; esac fi [[alternative HTML version...
2015 Jan 23
2
[PATCH] virt-copy, virt-tar: show help for -h
Shows manpage for virt-copy-in,out and virt-tar-in,out when user supplies -h as a parameter instead of listing unrelated commands with descriptions. Maros Zatko (1): virt-copy, virt-tar: show help for -h fish/virt-copy-in | 13 ++++++++++++- fish/virt-copy-out | 13 ++++++++++++- fish/virt-tar-in | 13 ++++++++++++- fish/virt-tar-out | 13 ++++++++++++- 4 files changed, 48 insertions(+),
2004 Aug 30
3
roaming profiles ok, but what about the printers?
Hi there, We have a little intranetwork with Samba 3.0.x as PDC. There are 20 Win2k-clients in several rooms and 18 users roaming from one machine to another (according to their tasks). So any user has a roaming profile. This runs almost perfect (some minor problems are still there, but the the advantages are overwelming). But there is one thing, I can't understand. Why does Win2k saves
2009 Aug 03
1
use gnulib, and begin to pass its "make syntax-check" tests
...will suffice in most cases. +" +} + +for option +do + case $option in + --help) + usage + exit;; + --gnulib-srcdir=*) + GNULIB_SRCDIR=`expr "$option" : '--gnulib-srcdir=\(.*\)'`;; + *) + echo >&2 "$0: $option: unknown option" + exit 1;; + esac +done + +# Get gnulib files. + +case ${GNULIB_SRCDIR--} in +-) + echo "$0: getting gnulib files..." + git submodule init || exit $? + git submodule update || exit $? + GNULIB_SRCDIR=.gnulib + ;; +*) + # Redirect the gnulib submodule to the directory on the command line + # if possi...