[Lunar-commits] <moonbase> cdrtools: create dir before moving file into it

Paul Bredbury brebs at lunar-linux.org
Fri Sep 4 13:12:48 CEST 2009


commit 5734c16bb3dd987cfc874b45dad2eff4cde0cd58
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Fri Sep 4 18:12:48 2009 +0700

    cdrtools: create dir before moving file into it
    
    I'm an idiot.
---
 cd/cdrtools/POST_INSTALL |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cd/cdrtools/POST_INSTALL b/cd/cdrtools/POST_INSTALL
index 1a1cf19..c1ac9c9 100644
--- a/cd/cdrtools/POST_INSTALL
+++ b/cd/cdrtools/POST_INSTALL
@@ -3,6 +3,7 @@ mod_ide_scsi()  {
   if [ ! -e /etc/modprobe.d/ide-scsi.conf ] ; then
     if [ -e /etc/modules.d/ide-scsi ] ; then
       message "Moving /etc/modules.d/ide-scsi to /etc/modprobe.d/ide-scsi.conf"
+      mkdir -p /etc/modprobe.d/  &&
       mv /etc/modules.d/ide-scsi /etc/modprobe.d/ide-scsi.conf
     else
       message "Installing /etc/modprobe.d/ide-scsi.conf"


More information about the Lunar-commits mailing list