diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-03-11 19:45:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-03-11 19:45:03 +0000 |
commit | 2eb24611ef0c2bc838035951e5d27f663a58a820 (patch) | |
tree | fe2d29b95fd29ca7b9dc9a44ffd1bfe9b84367ef /cdeject.sh | |
parent | 79bfc7769882f42a371b0242248c0339780d1024 (diff) |
I really hate to be a developer right now...I have to rewrite this Sabayon inherited crap
Diffstat (limited to 'cdeject.sh')
-rw-r--r-- | cdeject.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cdeject.sh b/cdeject.sh deleted file mode 100644 index ae75ae8..0000000 --- a/cdeject.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -is_live=$(cat /proc/cmdline | grep cdroot) - -if [ -n "${is_live}" ]; then - cdrom_dev=$(cat /proc/mounts | grep " /mnt/cdrom " | cut -d" " -f 1) - # check if /mnt/cdrom device is a cdrom device - if [ "${cdrom_dev}" = /dev/sr* ] || [ "${cdrom_dev}" = /dev/cdrom* ]; then - eject -mp "${cdrom_dev}" &> /dev/null - fi -fi - |