File: module-setup.sh

package info (click to toggle)
dracut 020-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,536 kB
  • sloc: sh: 11,827; ansic: 1,960; makefile: 183; python: 165; perl: 55
file content (20 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

check() {
    [ -x /bin/dash ]
}

depends() {
    return 0
}

install() {
    # If another shell is already installed, do not use dash
    [[ -x $initdir/bin/sh ]] && return

    # Prefer dash as /bin/sh if it is available.
    inst /bin/dash && ln -sf dash "${initdir}/bin/sh"
}