From 5a8e654ebea3dbd4e6157ae0f33f6c452f72c802 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 5 Jun 2011 17:07:50 -0400 Subject: functions: remove add_device This was only ever used in the base layout, and it's not needed. devices will be present if we're using devtmpfs, and created for us by init if we mount on tmpfs. Also, this is part of our move towards using bsdcpio instead of gen_init_cpio, and as a side effect we can no longer support this. Any devices that need to be created should be done so by the runtime hooks, not the install time hooks. Signed-off-by: Dave Reisner --- functions | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'functions') diff --git a/functions b/functions index fb6d8f7..9aeb462 100644 --- a/functions +++ b/functions @@ -102,23 +102,6 @@ add_dir () fi } -# add_device /dev/foo type major minor [permissions] -add_device () -{ - if [ $# -ge 4 ]; then - local perms - perms="${5:-644}" - if ! grep -q "nod ${1}" "${FILELIST}"; then - add_dir $(get_dirname "${1}") - msg " adding node ${1}" - echo "nod ${1} ${perms} 0 0 ${2} ${3} ${4}" >> "${FILELIST}" - fi - else - err "invalid device node format: $@" - return 1 - fi -} - # what the hell does this do? add_symlink () { -- cgit v1.2.3-24-g4f1b