Syntax error: "then" unexpected

Help
Steve
2007-06-08
2013-04-08
  • Steve
    Steve
    2007-06-08

    I'm getting the same message. I'm trying to run the livecd.sh script on a newly installed FBSD 6.2 server. I'll continue reading the project homepage, combing through the code and searching the net, but any help or quick fix would be much appreciated. TIA, Steve.

     
  • Steve
    Steve
    2007-06-08

    Well, I found that replacing a couple of elif then's with else statements got the script working for me, but it fails when trying to compile the kernel. Maybe I need to sync my /usr/src?

    The compilation process was aborted ...
    jenna# cat /usr/home/st3v3/FreeBSD_LiveCD/livecd-1.2.4/log
    ./cdrom missing (created)
    ./home missing (created)
    ./mfs missing (created)
    ./scripts missing (created)
    ./scripts/lang missing (created)
    ./mnt missing (created)
    ./mnt/dos.1 missing (created)
    ./mnt/dos.2 missing (created)
    ./mnt/dos.3 missing (created)
    ./mnt/dos.4 missing (created)
    ./mnt/ext2fs.1 missing (created)
    ./mnt/ext2fs.2 missing (created)
    ./mnt/ext2fs.3 missing (created)
    ./mnt/ext2fs.4 missing (created)
    ./mnt/ntfs.1 missing (created)
    ./mnt/ntfs.2 missing (created)
    ./mnt/ntfs.3 missing (created)
    ./mnt/ntfs.4 missing (created)
    ./mnt/tmp missing (created)
    ./mnt/ufs.1 missing (created)
    ./mnt/ufs.2 missing (created)
    ./mnt/ufs.3 missing (created)
    ./mnt/ufs.4 missing (created)
    ./stand missing (created)
    ./usr missing (created)
    ./usr/local missing (created)
    ./usr/local/etc missing (created)
    Removing /usr/live_root/usr/src/sys/compile/LIVECD
    Copy /usr/live_root/usr/src/sys/i386/conf/GENERIC /usr/live_root/usr/src/sys/i386/conf/LIVECD

     
  • Steve
    Steve
    2007-06-08

    Fixed the above by manually creating directory /usr/live_root/usr/src/sys/i386/conf/ and manually copying the GENERIC kernel to LIVECD in that directory. Still, it aborts when trying to build the kernel because it can't append kernel options or something. Was this project abandoned or something??? No support and nothing is working for me. Maybe it's not working with version 6.2-STABLE? It does say 4.5-STABLE or higher in the README.english, but who knows how old that is. Ah, hoping someone can give me a pointer here, I originally assumed I was experiencing a PEBKAC error, but now I don't know. Here's the output of my livecd.sh log:

    The compilation process was aborted ...
    jenna# cat log
    ./cdrom missing (created)
    ./home missing (created)
    ./mfs missing (created)
    ./scripts missing (created)
    ./scripts/lang missing (created)
    ./mnt missing (created)
    ./mnt/dos.1 missing (created)
    ./mnt/dos.2 missing (created)
    ./mnt/dos.3 missing (created)
    ./mnt/dos.4 missing (created)
    ./mnt/ext2fs.1 missing (created)
    ./mnt/ext2fs.2 missing (created)
    ./mnt/ext2fs.3 missing (created)
    ./mnt/ext2fs.4 missing (created)
    ./mnt/ntfs.1 missing (created)
    ./mnt/ntfs.2 missing (created)
    ./mnt/ntfs.3 missing (created)
    ./mnt/ntfs.4 missing (created)
    ./mnt/tmp missing (created)
    ./mnt/ufs.1 missing (created)
    ./mnt/ufs.2 missing (created)
    ./mnt/ufs.3 missing (created)
    ./mnt/ufs.4 missing (created)
    ./stand missing (created)
    ./usr missing (created)
    ./usr/local missing (created)
    ./usr/local/etc missing (created)
    Removing /usr/live_root/usr/src/sys/compile/LIVECD
    Copy /usr/live_root/usr/src/sys/i386/conf/GENERIC /usr/live_root/usr/src/sys/i386/conf/LIVECD
    Removing /usr/live_root/usr/src/sys/compile/LIVECD
    Copy /usr/live_root/usr/src/sys/i386/conf/GENERIC /usr/live_root/usr/src/sys/i386/conf/LIVECD
    ./cdrom missing (created)
    ./home missing (created)
    ./mfs missing (created)
    ./scripts missing (created)
    ./scripts/lang missing (created)
    ./mnt missing (created)
    ./mnt/dos.1 missing (created)
    ./mnt/dos.2 missing (created)
    ./mnt/dos.3 missing (created)
    ./mnt/dos.4 missing (created)
    ./mnt/ext2fs.1 missing (created)
    ./mnt/ext2fs.2 missing (created)
    ./mnt/ext2fs.3 missing (created)
    ./mnt/ext2fs.4 missing (created)
    ./mnt/ntfs.1 missing (created)
    ./mnt/ntfs.2 missing (created)
    ./mnt/ntfs.3 missing (created)
    ./mnt/ntfs.4 missing (created)
    ./mnt/tmp missing (created)
    ./mnt/ufs.1 missing (created)
    ./mnt/ufs.2 missing (created)
    ./mnt/ufs.3 missing (created)
    ./mnt/ufs.4 missing (created)
    ./stand missing (created)
    ./usr missing (created)
    ./usr/local missing (created)
    ./usr/local/etc missing (created)
    Removing /usr/live_root/usr/src/sys/compile/LIVECD
    Copy /usr/live_root/usr/src/sys/i386/conf/GENERIC /usr/live_root/usr/src/sys/i386/conf/LIVECD
    Removing /usr/live_root/usr/src/sys/compile/LIVECD
    Copy /usr/live_root/usr/src/sys/i386/conf/GENERIC /usr/live_root/usr/src/sys/i386/conf/LIVECD
    Append LIVECD kernel options to Generic kernel
    Building kernel