Skip to content

Commit

Permalink
Migrate all calls to ourInit() to systemctl
Browse files Browse the repository at this point in the history
perl -i -pe 's/ourInit (.+?) (.+)/systemctl $2 $1/' */debian/*(.)
  • Loading branch information
sdelafond committed Feb 28, 2018
1 parent b48f232 commit 6162f5b
Show file tree
Hide file tree
Showing 51 changed files with 51 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ fi
apply_oem="/usr/share/untangle/bin/apply-oem.sh"
[ -f $apply_oem ] && $apply_oem

ourInit apache2 restart
systemctl restart apache2

exit 0
2 changes: 1 addition & 1 deletion untangle-firmware-common/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-firmware-common" ]; then
update-rc.d untangle-firmware-common defaults >/dev/null # early on
ourInit untangle-firmware-common restart
systemctl restart untangle-firmware-common
fi


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ -x "/etc/init.d/untangle-firmware-common" ]; then
ourInit untangle-firmware-common restart
systemctl restart untangle-firmware-common
fi

exit 0
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ -x "/etc/init.d/untangle-firmware-common" ]; then
ourInit untangle-firmware-common restart
systemctl restart untangle-firmware-common
fi

# disable rsyslog by default on linksys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-config" ]; then
update-rc.d untangle-hardware-config defaults 10 >/dev/null # early on
ourInit untangle-hardware-config restart
systemctl restart untangle-hardware-config
fi

# #12704: no forcing of FRAMEBUFFER in initramfs configuration; this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-config

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-jetway-u50w" ]; then
update-rc.d untangle-hardware-jetway-u50w defaults 10 >/dev/null # early on
ourInit untangle-hardware-jetway-u50w restart
systemctl restart untangle-hardware-jetway-u50w
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-jetway-u50w

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-lanner-m1500" ]; then
update-rc.d untangle-hardware-lanner-m1500 defaults 10 >/dev/null # early on
ourInit untangle-hardware-lanner-m1500 restart
systemctl restart untangle-hardware-lanner-m1500
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-lanner-m1500

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-lanner-m3000" ]; then
update-rc.d untangle-hardware-lanner-m3000 defaults 10 >/dev/null # early on
ourInit untangle-hardware-lanner-m3000 restart
systemctl restart untangle-hardware-lanner-m3000
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-lanner-m3000

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-lanner-u150" ]; then
update-rc.d untangle-hardware-lanner-u150 defaults 10 >/dev/null # early on
ourInit untangle-hardware-lanner-u150 restart
systemctl restart untangle-hardware-lanner-u150
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-lanner-u150

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-lanner-u25" ]; then
update-rc.d untangle-hardware-lanner-u25 defaults 10 >/dev/null # early on
ourInit untangle-hardware-lanner-u25 restart
systemctl restart untangle-hardware-lanner-u25
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-lanner-u25

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-lanner-u25w" ]; then
update-rc.d untangle-hardware-lanner-u25w defaults 10 >/dev/null # early on
ourInit untangle-hardware-lanner-u25w restart
systemctl restart untangle-hardware-lanner-u25w
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-lanner-u25w

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-lanner-u50" ]; then
update-rc.d untangle-hardware-lanner-u50 defaults 10 >/dev/null # early on
ourInit untangle-hardware-lanner-u50 restart
systemctl restart untangle-hardware-lanner-u50
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-lanner-u50

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-lanner-u500" ]; then
update-rc.d untangle-hardware-lanner-u500 defaults 10 >/dev/null # early on
ourInit untangle-hardware-lanner-u500 restart
systemctl restart untangle-hardware-lanner-u500
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-lanner-u500

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ -x "/etc/init.d/untangle-firmware-common" ]; then
ourInit untangle-firmware-common restart
systemctl restart untangle-firmware-common
fi

# 12.2.1 upgrade NGFW-10303
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ -x "/etc/init.d/untangle-firmware-common" ]; then
ourInit untangle-firmware-common restart
systemctl restart untangle-firmware-common
fi

# 12.2.1 upgrade NGFW-10303
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-portwell-m1500" ]; then
update-rc.d untangle-hardware-portwell-m1500 defaults 10 >/dev/null # early on
ourInit untangle-hardware-portwell-m1500 restart
systemctl restart untangle-hardware-portwell-m1500
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-portwell-m1500

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-portwell-m3000" ]; then
update-rc.d untangle-hardware-portwell-m3000 defaults 10 >/dev/null # early on
ourInit untangle-hardware-portwell-m3000 restart
systemctl restart untangle-hardware-portwell-m3000
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-portwell-m3000

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-portwell-u10" ]; then
update-rc.d untangle-hardware-portwell-u10 defaults 10 >/dev/null # early on
ourInit untangle-hardware-portwell-u10 restart
systemctl restart untangle-hardware-portwell-u10
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-portwell-u10

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-portwell-u150" ]; then
update-rc.d untangle-hardware-portwell-u150 defaults 10 >/dev/null # early on
ourInit untangle-hardware-portwell-u150 restart
systemctl restart untangle-hardware-portwell-u150
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-portwell-u150

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-portwell-u50" ]; then
update-rc.d untangle-hardware-portwell-u50 defaults 10 >/dev/null # early on
ourInit untangle-hardware-portwell-u50 restart
systemctl restart untangle-hardware-portwell-u50
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-portwell-u50

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -x "/etc/init.d/untangle-hardware-portwell-u500" ]; then
update-rc.d untangle-hardware-portwell-u500 defaults 10 >/dev/null # early on
ourInit untangle-hardware-portwell-u500 restart
systemctl restart untangle-hardware-portwell-u500
fi

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=untangle-hardware-portwell-u500

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u25x/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

if [ -x "/etc/init.d/${SERVICE}" ]; then
update-rc.d ${SERVICE} defaults 10 >/dev/null # early on
ourInit ${SERVICE} restart
systemctl restart ${SERVICE}
fi

exit 0
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u25x/debian/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u25xw/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

if [ -x "/etc/init.d/${SERVICE}" ]; then
update-rc.d ${SERVICE} defaults 10 >/dev/null # early on
ourInit ${SERVICE} restart
systemctl restart ${SERVICE}
fi

exit 0
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u25xw/debian/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u50x/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

if [ -x "/etc/init.d/${SERVICE}" ]; then
update-rc.d ${SERVICE} defaults 10 >/dev/null # early on
ourInit ${SERVICE} restart
systemctl restart ${SERVICE}
fi

swapNic() {
Expand Down
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u50x/debian/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u50xw/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

if [ -x "/etc/init.d/${SERVICE}" ]; then
update-rc.d ${SERVICE} defaults 10 >/dev/null # early on
ourInit ${SERVICE} restart
systemctl restart ${SERVICE}
fi

swapNic() {
Expand Down
2 changes: 1 addition & 1 deletion untangle-hardware-qotom-u50xw/debian/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SERVICE=${DPKG_MAINTSCRIPT_PACKAGE}

case "$1" in
remove|deconfigure)
ourInit $SERVICE stop
systemctl stop $SERVICE
;;
upgrade|failed-upgrade)
;;
Expand Down
Loading

0 comments on commit 6162f5b

Please sign in to comment.