resume-generator.c revision d2c68822c47e37b582820f45b496b2e7d1f9e642
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend This file is part of systemd.
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluem Copyright 2014 Ivan Shapovalov
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend systemd is free software; you can redistribute it and/or modify it
b4a00883f358625923365ca1560c96edec172a52sf under the terms of the GNU Lesser General Public License as published by
50c04f297d76a57ead2fa6b73845f7563b1fc788sf the Free Software Foundation; either version 2.1 of the License, or
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend (at your option) any later version.
d9b843d090f14405079b4a61a493316cd3f1e5b9minfrin systemd is distributed in the hope that it will be useful, but
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend WITHOUT ANY WARRANTY; without even the implied warranty of
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholes MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
909ce17e2bd0faef7b1c294f2307f009793fd493nd Lesser General Public License for more details.
0ce5630695a7aa568811a9dd0aceedd685f040dend You should have received a copy of the GNU Lesser General Public License
a29610af88e278144045bfa1bc63b4a1a4b5ff14trawick along with systemd; If not, see <http://www.gnu.org/licenses/>.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendstatic int parse_proc_cmdline_item(const char *key, const char *value) {
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendstatic int process_resume(void) {
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend name = unit_name_from_path_instance("systemd-hibernate-resume", arg_resume_dev, ".service");
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin lnk = strjoin(arg_dest, "/" SPECIAL_SYSINIT_TARGET ".wants/", name, NULL);
7d15331eeb5429d7148d13d6fd914a641bf1c000pquerna if (symlink(SYSTEM_DATA_UNIT_PATH "/systemd-hibernate-resume@.service", lnk) < 0) {
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend int r = 0;
e5ce3ac0e9b720c0fa23782e29168a0810697fdetakashi /* Don't even consider resuming outside of initramfs. */