Bug 18375 - useless command: switchfrom
Summary: useless command: switchfrom
Status: CLOSED WONTFIX
Alias: None
Product: Branch 4.1
Classification: Distributions
Component: etcnet (show other bugs)
Version: unspecified
Hardware: all Linux
: P2 enhancement
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-4.1@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-28 05:26 MSK by Ivan Zakharyaschev
Modified: 2014-11-05 20:41 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2008-12-28 05:26:02 MSK
etcnet-0.9.7-alt0.M41.1

"service network switchfrom PROFILE" seems to be useless. Its code is:

        switchfrom)
                [ $# -ne 2 ] && usage
                init_nethost
                init_netprofile $2
                stop $*
                init_netprofile
                start $*
                ;;

I have read the documentation and see no reason to use switchfrom instead of restart:

       restart)
                [ $# -ne 1 ] && usage
                init_nethost
                init_netprofile
                stop $*
                start $*
                ;;


the PROFILE parameter of switchfrom seems to be superfluous: if one is bringing down the network, he is just bringing it down, no matter what the name of the old profile was.

I suggest to remove switchfrom from the "public" interface of etcnet (i.e., service network) in order not to confuse people. (Perhaps, it is useful during hacking etcnet, but not during normal operation.)

Or add an explanation when it can be useful.
Comment 1 Michael Shigorin 2014-11-05 20:41:53 MSK
В 4.1/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.