diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-21 02:10:57 -0600 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-21 02:10:57 -0600 |
commit | 77e9ea45caa7608557b1443acf0ae7d1b27248de (patch) | |
tree | 970e4e25a34abd604784f4c47477b97f345c2a8a /configs/default/overlay/etc/rc.d | |
parent | 97f4dcec818f98a6580443f33f716342c05f2861 (diff) | |
download | archiso32-77e9ea45caa7608557b1443acf0ae7d1b27248de.tar.xz |
Revamp the simple sample ISO config
Should be easier and cleaner. Makes a dumb ISO that does nothing
but is intended as an example to the user.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'configs/default/overlay/etc/rc.d')
-rw-r--r-- | configs/default/overlay/etc/rc.d/archiso | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/configs/default/overlay/etc/rc.d/archiso b/configs/default/overlay/etc/rc.d/archiso deleted file mode 100644 index 661bcbd..0000000 --- a/configs/default/overlay/etc/rc.d/archiso +++ /dev/null @@ -1,63 +0,0 @@ -# vim: set ft=sh: -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/archiso/functions - - -scan_network () -{ - netparam () { echo ${2} | sed "s|.*${1}\([^ ]*\).*|\1|gi"; } - # - netdevs=$(cat /proc/net/dev | grep ':' | cut -d':' -f1) - for net in ${netdev}; do - stats=$(ifconfig ${net} | tr -s "\n" " ") - -} - -scan_mount_pts () -{ - #iterate over all block devices - stat_busy "Scanning local block devices" - for dev in $(echo /sys/block/*/dev /sys/block/*/*/dev); do - - devname="/dev/$(echo ${dev} | cut -d'/' -f3,4 | cut -d'/' -f1)" - mountpt="/mnt/$(basename '${devname}')" - mkdir -p "${mountpt}" 2>/dev/null - mount ${options} "${devname}" "${mountpt}" >/dev/null 2>&1 - - fstype=$(awk '{ if ($1=="${devname}") { print $3" "$4;q }}' /proc/mounts) - fstype="${fstype%%,*}" - case "${fstype%% *}" in - *fat*|ntfs|*dos) options="user,exec,uid=0,gid=100,umask=00070" ;; - *) options="users,defaults,exec" ;; - #TODO handle 'sync' on usb devices... - esac - - echo "${devname} ${mountpt} ${fstype} ${options} 0 0 #configured by archiso" >>/etc/fstab - done - stat_done -} - -scan_swap () -{ - #Archie finds a pagefile.sys for windows/dos machines... may add later - stat_busy "Finding existing swap partitions" - swapdev="$(fdisk -l 2>/dev/null | grep swap | cut -d' ' -f1)" - if [ -e "${swapdev}" ]; then - swapon ${swapdev} - echo "${swapdev} swap swap defaults 0 0 #configured by archiso" >>/etc/fstab - fi - stat_done -} - -do_homedir () -{ - stat_busy "Scanning for existing HOME directory" - user="$(cmdline_param homeuser)" - for hdir in $(find /mnt -name "home/${user}" 2>/dev/null); do - mkdir -p "/home/arch/" - # break after the first success... - mount --bind "${hdir}" "/home/arch/" && break - done - stat_done -} |