33 lines
573 B
Bash
33 lines
573 B
Bash
|
#!/bin/sh
|
||
|
# For Spins without X.Org
|
||
|
flavour="${1}"
|
||
|
|
||
|
rc-update del installer-gui boot
|
||
|
rc-update del x-setup boot
|
||
|
rc-update del hald boot
|
||
|
rc-update del NetworkManager default
|
||
|
rc-update del avahi-daemon default
|
||
|
|
||
|
# re-enable rc_hotplug
|
||
|
sed -i 's:^rc_hotplug=.*:rc_hotplug="*":g' /etc/rc.conf
|
||
|
|
||
|
# install-data dir is really not needed
|
||
|
rm -rf /install-data
|
||
|
|
||
|
mount -t proc proc /proc
|
||
|
/lib/rc/bin/rc-depend -u
|
||
|
|
||
|
# Generate openrc cache
|
||
|
/etc/init.d/savecache start
|
||
|
/etc/init.d/savecache zap
|
||
|
|
||
|
ldconfig
|
||
|
ldconfig
|
||
|
umount /proc
|
||
|
|
||
|
emaint --fix world
|
||
|
|
||
|
rm -rf /var/lib/entropy/*cache*
|
||
|
|
||
|
exit 0
|