]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/boot.d/01-unmountinitrd
Ein NTFS-Update fuer den Heiner :D
[people/pmueller/ipfire-2.x.git] / src / boot.d / 01-unmountinitrd
CommitLineData
f8ae001e
MT
1#!/bin/sh
2# Unmount the initrd, if necessary
3if grep -q /initrd /proc/mounts && ! grep -q /initrd/loopfs /proc/mounts ; then
4 umount /initrd >/dev/null 2>&1
5 blockdev --flushbufs /dev/ram0 >/dev/null 2>&1
6fi