2006-03-27 Jürg Billeter <j@bitron.ch>
* configure.in: * initscript/Makefile.am: * initscript/paldo/Makefile.am: * initscript/paldo/NetworkManager.in: * initscript/paldo/NetworkManagerDispatcher.in: * src/backends/Makefile.am: * src/backends/NetworkManagerPaldo.c: - Add paldo support git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1654 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:

committed by
Juerg Billeter

parent
cc2af5e3af
commit
ce811e32be
@@ -17,3 +17,6 @@ endif
|
||||
if TARGET_ARCH
|
||||
SUBDIRS += Arch
|
||||
endif
|
||||
if TARGET_PALDO
|
||||
SUBDIRS += paldo
|
||||
endif
|
||||
|
5
initscript/paldo/Makefile.am
Normal file
5
initscript/paldo/Makefile.am
Normal file
@@ -0,0 +1,5 @@
|
||||
EXTRA_DIST = NetworkManager NetworkManagerDispatcher
|
||||
|
||||
initddir = $(sysconfdir)/init.d
|
||||
initd_SCRIPTS = NetworkManager NetworkManagerDispatcher
|
||||
|
53
initscript/paldo/NetworkManager.in
Normal file
53
initscript/paldo/NetworkManager.in
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
### BEGIN INIT INFO
|
||||
# Provides: NetworkManager
|
||||
# Required-Start: $network dbus dhcdbd
|
||||
# Required-Stop: $network dbus dhcdbd
|
||||
# Default-Start: 3 4 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
### END INIT INFO
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@prefix@
|
||||
sbindir=@sbindir@
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting NetworkManager..."
|
||||
if start_daemon $sbindir/NetworkManager
|
||||
then
|
||||
log_success_msg
|
||||
else
|
||||
log_failure_msg
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping NetworkManager..."
|
||||
if killproc $sbindir/NetworkManager
|
||||
then
|
||||
log_success_msg "."
|
||||
else
|
||||
log_failure_msg
|
||||
fi
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
try-restart)
|
||||
if pidofproc $sbindir/NetworkManager
|
||||
then
|
||||
$0 restart
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
pidofproc $sbindir/NetworkManager
|
||||
exit $?
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
53
initscript/paldo/NetworkManagerDispatcher.in
Normal file
53
initscript/paldo/NetworkManagerDispatcher.in
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
### BEGIN INIT INFO
|
||||
# Provides: NetworkManagerDispatcher
|
||||
# Required-Start: $network dbus
|
||||
# Required-Stop: $network dbus
|
||||
# Default-Start: 3 4 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
### END INIT INFO
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@prefix@
|
||||
sbindir=@sbindir@
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting NetworkManagerDispatcher..."
|
||||
if start_daemon $sbindir/NetworkManagerDispatcher
|
||||
then
|
||||
log_success_msg
|
||||
else
|
||||
log_failure_msg
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping NetworkManagerDispatcher..."
|
||||
if killproc $sbindir/NetworkManagerDispatcher
|
||||
then
|
||||
log_success_msg "."
|
||||
else
|
||||
log_failure_msg
|
||||
fi
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
try-restart)
|
||||
if pidofproc $sbindir/NetworkManagerDispatcher
|
||||
then
|
||||
$0 restart
|
||||
fi
|
||||
;;
|
||||
status)
|
||||
pidofproc $sbindir/NetworkManagerDispatcher
|
||||
exit $?
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user