2015-02-05 03:14:41 +01:00
|
|
|
#!/bin/bash
|
2011-03-11 01:38:04 +01:00
|
|
|
#
|
|
|
|
# chkconfig: 345 90 90
|
|
|
|
# description: Executes Qubes core scripts at NetVM boot
|
|
|
|
#
|
|
|
|
# Source function library.
|
|
|
|
. /etc/rc.d/init.d/functions
|
|
|
|
|
2016-10-22 17:43:16 +02:00
|
|
|
# Source Qubes library.
|
|
|
|
. /usr/lib/qubes/init/functions
|
|
|
|
|
2011-03-11 01:38:04 +01:00
|
|
|
start()
|
|
|
|
{
|
2016-10-22 17:43:16 +02:00
|
|
|
have_qubesdb || return
|
2011-03-11 01:38:04 +01:00
|
|
|
|
2016-10-22 17:43:16 +02:00
|
|
|
if is_netvm; then
|
2012-01-30 14:20:02 +01:00
|
|
|
/usr/lib/qubes/network-manager-prepare-conf-dir
|
2011-03-11 01:38:04 +01:00
|
|
|
/sbin/service NetworkManager start
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -n $"Executing Qubes Core scripts NetVM:"
|
2017-09-30 04:49:21 +02:00
|
|
|
# shellcheck disable=SC2015
|
2016-10-22 17:43:16 +02:00
|
|
|
/usr/lib/qubes/init/network-proxy-setup && success || failure
|
|
|
|
echo
|
2011-03-11 01:38:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo $"Usage: $0 {start|stop}"
|
|
|
|
exit 3
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2017-09-30 04:49:21 +02:00
|
|
|
# shellcheck disable=SC2086
|
2011-03-11 01:38:04 +01:00
|
|
|
exit $RETVAL
|