2012-09-09 12:17:16 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
sd_booted() {
|
|
|
|
[ -e sys/fs/cgroup/systemd ]
|
|
|
|
}
|
2012-11-22 07:30:08 +08:00
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
post_install() {
|
2012-11-26 07:15:39 +08:00
|
|
|
udevadm hwdb --update
|
|
|
|
|
2012-10-28 05:07:32 +08:00
|
|
|
if sd_booted; then
|
|
|
|
systemctl --system daemon-reexec
|
|
|
|
fi
|
2012-09-09 12:17:16 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2012-11-22 05:18:45 +08:00
|
|
|
udevadm hwdb --update
|
|
|
|
|
2012-11-22 07:30:08 +08:00
|
|
|
journalctl --update-catalog
|
|
|
|
|
2013-03-10 07:12:14 +08:00
|
|
|
if [ "$(pacman -Q systemd | cut -d " " -f2 | cut -d "-" -f1)" = "196" ] ; then
|
|
|
|
echo -e '\e[31;46m WARNING'
|
|
|
|
echo -e '\e[31;46m Systemd 197 has moved to persistent network naming, for most users this will have'
|
|
|
|
echo -e '\e[31;46m no effect. To check what the new name for your network device will be, run:'
|
|
|
|
echo -e '\e[31;46m hwinfo --network, and look for: Device File: xxxxx, were xxxx is your device.'
|
|
|
|
echo -e '\e[31;46m This will be used in /usr/lib/udev/rules.d/80-net-name-slot.rules '
|
|
|
|
echo -e '\e[31;46m If you use dhcpcd instead of networkmanager to connect, re-enable the service before rebooting'
|
|
|
|
echo -e '\e[31;46m Configuration files like conky.conf will need the new naming scheme too'
|
|
|
|
echo -e '\e[31;46m http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames \e[0m'
|
|
|
|
fi
|
2012-11-22 07:30:08 +08:00
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
if sd_booted; then
|
2012-10-28 05:07:32 +08:00
|
|
|
systemctl --system daemon-reexec
|
|
|
|
systemctl restart systemd-logind.service
|
2012-09-09 12:17:16 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|