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-08 19:37:31 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d738de4cc93d6648e78f3b1ef94804a7cc06985e
d738de4c
1 parent
cc79df1a
Added Debian init-script
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 @
d738de4
#! /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