https://github.com/jdub/openwrt-systemd шах и мат, эмбедоёбы
Короч, показываю как надо(в ответ на #3A29S0):
nb-crunchbang :: ~ » cat /etc/acpi/lm_lid.sh
#! /bin/bash
# test -f /usr/sbin/laptop_mode || exit 0
# lid button pressed/released event handler
# /usr/sbin/laptop_mode auto
lid_state=`grep -o closed /proc/acpi/button/lid/LID0/state`
if [[ ! -f /run/lock/acpi.lid.lock && $lid_state != '' ]]; then
/usr/sbin/pm-suspend
fi
nb-crunchbang :: ~ » cat ~/bin/inhibit
#!/usr/bin/env bash
touch /run/lock/acpi.lid.lock
$@
rm /run/lock/acpi.lid.lock
if [[ `grep -o closed /proc/acpi/button/lid/LID0/state` != '' ]]; then
sudo /usr/sbin/pm-suspend
fi
Для сравнения:
nb-crunchbang :: ~ » wc -l dev/systemd-215/src/login/inhibit.c
285 dev/systemd-215/src/login/inhibit.c
Makes sense.
http://man7.org/linux/man-pages/man8/systemd-machined.8.html
Короч, Лёнчик решил переписать нахуй докер. Даже импорт докерфайлов пилит. С одной стороны, кому и в какую пизду это тарахтело, если докер и так по самые гениталии можно интегрировать с systemd(см. CoreOS)? С другой стороны:
Дунно, короч, мне от его неутомимой графомании стрёмно.
With init, skipping a scheduled fsck during boot was easy, you just pressed
Ctrl+c, it was obvious! Today I was late for an online conference. I got
home, turned on my computer, and systemd decided it was time to run fsck on my
1TB hard drive. Ok, I just skip it, right? Well, Ctrl+c does not work, ESC
does not work, nothing seems to work. I Googled for an answer on my phone but
nothing. So, is there a mysterious set of commands they came up with to skip an
fsck or is it yet another flaw?