- Add the proper exit codes to setup-pulseaudio script
(for avoiding the errors during installation, too) OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=92
This commit is contained in:
parent
b571bc5e19
commit
f184cef63f
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 6 14:16:34 CEST 2012 - tiwai@suse.de
|
||||||
|
|
||||||
|
- Add the proper exit codes to setup-pulseaudio script
|
||||||
|
(for avoiding the errors during installation, too)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 4 08:37:07 UTC 2012 - idonmez@suse.com
|
Mon Jun 4 08:37:07 UTC 2012 - idonmez@suse.com
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ show_help() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "You need to be root for this command to succeed"
|
echo "You need to be root for this command to succeed"
|
||||||
echo "You may need to re-login for changes to take effect"
|
echo "You may need to re-login for changes to take effect"
|
||||||
exit
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
check_root() {
|
check_root() {
|
||||||
@ -326,17 +326,17 @@ disable_all() {
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
--enable)
|
--enable)
|
||||||
check_root || exit
|
check_root || exit 1
|
||||||
ENABLE=1
|
ENABLE=1
|
||||||
enable_all
|
enable_all
|
||||||
;;
|
;;
|
||||||
--disable)
|
--disable)
|
||||||
check_root || exit
|
check_root || exit 1
|
||||||
ENABLE=0
|
ENABLE=0
|
||||||
disable_all
|
disable_all
|
||||||
;;
|
;;
|
||||||
--auto)
|
--auto)
|
||||||
check_root || exit
|
check_root || exit 1
|
||||||
if [ -f /etc/sysconfig/sound ]; then
|
if [ -f /etc/sysconfig/sound ]; then
|
||||||
. /etc/sysconfig/sound
|
. /etc/sysconfig/sound
|
||||||
fi
|
fi
|
||||||
@ -347,7 +347,7 @@ case $1 in
|
|||||||
else
|
else
|
||||||
disable_all
|
disable_all
|
||||||
fi
|
fi
|
||||||
exit
|
exit 0
|
||||||
;;
|
;;
|
||||||
--status)
|
--status)
|
||||||
if [ -f /etc/sysconfig/sound ]; then
|
if [ -f /etc/sysconfig/sound ]; then
|
||||||
@ -360,7 +360,7 @@ case $1 in
|
|||||||
else
|
else
|
||||||
echo "disabled"
|
echo "disabled"
|
||||||
fi
|
fi
|
||||||
exit
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
show_help
|
show_help
|
||||||
@ -381,3 +381,4 @@ else
|
|||||||
echo "PULSEAUDIO_ENABLE=\"no\"" >> /etc/sysconfig/sound
|
echo "PULSEAUDIO_ENABLE=\"no\"" >> /etc/sysconfig/sound
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user