Outputting an own message when having more than one case in a helper, instead of a global one.
This commit is contained in:
parent
8f8a9ec521
commit
17e172bbdf
|
@ -36,13 +36,13 @@ Read_conffile config/source
|
|||
Read_conffile "${LH_CONFIG}"
|
||||
Set_defaults
|
||||
|
||||
Echo_message "Begin mounting /dev/pts..."
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
case "${1}" in
|
||||
install)
|
||||
Echo_message "Begin mounting /dev/pts..."
|
||||
|
||||
# Checking stage file
|
||||
Check_stagefile .stage/chroot_devpts
|
||||
|
||||
|
@ -66,6 +66,8 @@ case "${1}" in
|
|||
;;
|
||||
|
||||
remove)
|
||||
Echo_message "Begin unmounting /dev/pts..."
|
||||
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
|
||||
|
|
|
@ -67,14 +67,14 @@ EOF
|
|||
;;
|
||||
|
||||
remove)
|
||||
Echo_message "Deconfiguring file /sbin/start-stop-daemon"
|
||||
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
|
||||
# Creating lock file
|
||||
Create_lockfile .lock
|
||||
|
||||
Echo_message "Deconfiguring file /sbin/start-stop-daemon"
|
||||
|
||||
# Restore start-stop-daemon program
|
||||
mv chroot/sbin/start-stop-daemon.orig chroot/sbin/start-stop-daemon
|
||||
|
||||
|
|
|
@ -36,13 +36,13 @@ Read_conffile config/source
|
|||
Read_conffile "${LH_CONFIG}"
|
||||
Set_defaults
|
||||
|
||||
Echo_message "Begin mounting /proc..."
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
case "${1}" in
|
||||
install)
|
||||
Echo_message "Begin mounting /proc..."
|
||||
|
||||
# Checking stage file
|
||||
Check_stagefile .stage/chroot_proc
|
||||
|
||||
|
@ -69,6 +69,8 @@ case "${1}" in
|
|||
;;
|
||||
|
||||
remove)
|
||||
Echo_message "Begin unmounting /proc..."
|
||||
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
|
||||
|
|
|
@ -36,13 +36,13 @@ Read_conffile config/source
|
|||
Read_conffile "${LH_CONFIG}"
|
||||
Set_defaults
|
||||
|
||||
Echo_message "Begin mounting /sys..."
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
case "${1}" in
|
||||
install)
|
||||
Echo_message "Begin mounting /sys..."
|
||||
|
||||
# Checking stage file
|
||||
Check_stagefile .stage/chroot_sysfs
|
||||
|
||||
|
@ -69,6 +69,8 @@ case "${1}" in
|
|||
;;
|
||||
|
||||
remove)
|
||||
Echo_message "Begin unmounting /sys..."
|
||||
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
|
||||
|
|
Loading…
Reference in New Issue