38 lines
662 B
Bash
Executable File
38 lines
662 B
Bash
Executable File
#!/bin/bash
|
|
|
|
/usr/sbin/env-update
|
|
. /etc/profile
|
|
|
|
sd_enable() {
|
|
[[ -x /usr/bin/systemctl ]] && \
|
|
systemctl --no-reload -f enable "${1}.service"
|
|
}
|
|
|
|
sd_disable() {
|
|
[[ -x /usr/bin/systemctl ]] && \
|
|
systemctl --no-reload -f disable "${1}.service"
|
|
}
|
|
|
|
sd_disable installer-gui
|
|
sd_disable avahi-daemon
|
|
|
|
# install-data dir is really not needed
|
|
rm -rf /install-data
|
|
|
|
/lib/rc/bin/rc-depend -u
|
|
|
|
# Generate openrc cache
|
|
[[ -d "/lib/rc/init.d" ]] && touch /lib/rc/init.d/softlevel
|
|
[[ -d "/run/openrc" ]] && touch /run/openrc/softlevel
|
|
/etc/init.d/savecache start
|
|
/etc/init.d/savecache zap
|
|
|
|
ldconfig
|
|
ldconfig
|
|
|
|
emaint --fix world
|
|
|
|
rm -rf /var/lib/entropy/*cache*
|
|
|
|
exit 0
|