projects
/
platform
/
upstream
/
dracut.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
shutdown on demand
[platform/upstream/dracut.git]
/
dracut-initramfs-restore.sh
1
#!/bin/sh
2
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3
# ex: ts=8 sw=4 sts=4 et filetype=sh
4
5
set -e
6
cd /run/initramfs
7
IMG="/boot/initramfs-$(uname -r).img"
8
[ -f .need_shutdown -a -f "$IMG" ] || exit 1
9
zcat "$IMG" | cpio -id >/dev/null 2>&1
10
rm .need_shutdown