slinux hacking
- xfce-utils removed from Sisyphus - apt-indicator needs gksu - add slinux misc packages: + pm-utils + strace - image-scripts.d/50services is a script which starts/stop some services
This commit is contained in:
parent
3a4ba20a0f
commit
a83b7a17cb
38
features.in/slinux/live/image-scripts.d/50services
Executable file
38
features.in/slinux/live/image-scripts.d/50services
Executable file
@ -0,0 +1,38 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
SYSTEMCTL=/bin/systemctl
|
||||
CHKCONFIG=/sbin/chkconfig
|
||||
|
||||
turn_on() {
|
||||
if [ -x $SYSTEMCTL ]; then
|
||||
$SYSTEMCTL enable ${*}.service
|
||||
else if [ -x $CHKCONFIG ]; then
|
||||
$CHKCONFIG $* on
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
turn_off() {
|
||||
if [ -x $SYSTEMCTL ]; then
|
||||
$SYSTEMCTL disable ${*}.service
|
||||
else if [ -x $CHKCONFIG ]; then
|
||||
$CHKCONFIG $* off
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
SERVICES_TO_ENABLE="NetworkManager"
|
||||
SERVICES_TO_DISABLE=
|
||||
|
||||
for i in $SERVICES_TO_ENABLE; do
|
||||
turn_on $i;
|
||||
done
|
||||
|
||||
for i in $SERVICES_TO_DISABLE; do
|
||||
turn_off $i;
|
||||
done
|
||||
:
|
@ -1,3 +1,6 @@
|
||||
strace
|
||||
pm-utils
|
||||
|
||||
fvwm-
|
||||
fvwm-full-
|
||||
altlinux-freedesktop-menu-shallow-menu
|
||||
@ -46,6 +49,7 @@ gcalctool
|
||||
synaptic
|
||||
synaptic-usermode
|
||||
apt-indicator
|
||||
gksu
|
||||
cups
|
||||
ghostscript-cups
|
||||
cups-pdf
|
||||
|
@ -9,7 +9,6 @@ xfce4-minimal
|
||||
xfce4-session
|
||||
xfce4-panel
|
||||
xfce4-screenshooter
|
||||
xfce-utils
|
||||
xfconf-utils
|
||||
xfce4-power-manager
|
||||
Thunar
|
||||
|
@ -8,6 +8,5 @@ xfce4-minimal
|
||||
xfce4-panel
|
||||
xfce4-icon-theme
|
||||
xfce4-session
|
||||
xfce-utils
|
||||
xfconf-utils
|
||||
Thunar
|
||||
|
Loading…
Reference in New Issue
Block a user