Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
ipw
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2014-05-15 18:26:29 +0400
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
897bd14338d468fa0f41c26c4e940cc3a17ff176
897bd143
2 parents
9500d62e
d738de4c
Merge branch 'master' of
https://gitlab.ut.mephi.ru/ut/ipw
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
debian/ipw
debian/ipw
0 → 100755
View file @
897bd14
#! /bin/sh
#
# ipw network configuration utility
#
# Written by Dmitry Yu Okunev <dyokunev@ut.mephi.ru>
#
### BEGIN INIT INFO
# Provides: ipw
# Required-Start: mountkernfs $local_fs urandom networking
# Required-Stop: $local_fs
# Should-Start lxc
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts network
# Description: Starts network
### END INIT INFO
PATH
=
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
NAME
=
ipw
#includes lsb functions
. /lib/lsb/init-functions
case
"
$1
"
in
start
)
log_action_begin_msg
"Applying
$NAME
configuration..."
ipw fix
log_end_msg 0
;;
restart|reload|force-reload
)
log_action_begin_msg
"Applying
$NAME
configuration..."
ipw fix
log_end_msg 0
;;
stop
)
log_action_begin_msg
"Running
$NAME
down"
ipw down
log_end_msg 0
;;
*
)
echo
"Usage: /etc/init.d/
$NAME
{start|stop|restart|reload|force-reload}"
>&2
exit
1
;;
esac
exit
0
...
...
Please
register
or
login
to post a comment