Accepting request 695825 from Base:System
Revert back to revision # 79. OBS-URL: https://build.opensuse.org/request/show/695825 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=82
This commit is contained in:
committed by
Git OBS Bridge
parent
e6494dc003
commit
0414295c92
10
xpram
10
xpram
@@ -12,9 +12,9 @@ read_config_file() {
|
||||
return 0
|
||||
fi
|
||||
file=$XPRAM_CONFIG_FILE
|
||||
|
||||
|
||||
if [ -s "$file" ]; then
|
||||
. $file
|
||||
source $file
|
||||
config_read=1
|
||||
else
|
||||
echo -ne "Cannot read $file: empty or nonexistant! "
|
||||
@@ -69,7 +69,7 @@ prepare_xpram() {
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo -n "Mount failed with error code $?"
|
||||
exit 6
|
||||
exit 6
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -83,7 +83,7 @@ prepare_xpram() {
|
||||
# 5 - program is not installed
|
||||
# 6 - program is not configured
|
||||
# 7 - program is not running
|
||||
#
|
||||
#
|
||||
# Note that starting an already running service, stopping
|
||||
# or restarting a not-running service as well as the restart
|
||||
# with force-reload (in case signalling is not supported) are
|
||||
@@ -164,7 +164,7 @@ case "$1" in
|
||||
|
||||
check_config
|
||||
|
||||
lsmod | grep -q $XPRAM_MODULE
|
||||
lsmod | grep -q $XPRAM_MODULE
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ "$XPRAM_DEVNODE" ]; then
|
||||
if ! grep -q $XPRAM_DEVNODE /proc/mounts && ! swapon -s | grep -q $XPRAM_DEVNODE; then
|
||||
|
Reference in New Issue
Block a user