mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-28 02:25:18 +03:00
17 lines
265 B
Bash
Executable File
17 lines
265 B
Bash
Executable File
#!/bin/sh
|
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
|
|
ret=0
|
|
case "$1" in
|
|
add)
|
|
dracut "$3"/initrd "$2"
|
|
ret=$?
|
|
;;
|
|
remove)
|
|
rm -f "$3"/initrd
|
|
ret=$?
|
|
;;
|
|
esac
|
|
exit $ret
|